Skip to content

Commit

Permalink
fix: update set_permissions call in Project perform_create
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Oct 1, 2024
1 parent 448d070 commit 61e7a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvdat/core/rest/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ProjectViewSet(ModelViewSet):
def perform_create(self, serializer):
project: Project = serializer.save()
user: User = self.request.user
project.set_permissions(owner=[user])
project.set_permissions(owner=user)

@action(detail=True, methods=['get'])
def regions(self, request, **kwargs):
Expand Down

0 comments on commit 61e7a29

Please sign in to comment.