Skip to content

Commit

Permalink
fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Jun 21, 2024
1 parent 16acb7d commit f284524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projectroles/views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class APIProjectContextMixin(ProjectAccessMixin):

def get_serializer_context(self, *args, **kwargs):
context = super().get_serializer_context(*args, **kwargs)
if sys.argv[1:2] == ["generateschema"]:
if sys.argv[1:2] == ['generateschema']:
return context
context['project'] = self.get_project(request=context['request'])
return context
Expand Down Expand Up @@ -578,7 +578,7 @@ class ProjectUpdateAPIView(

def get_serializer_context(self, *args, **kwargs):
context = super().get_serializer_context(*args, **kwargs)
if sys.argv[1:2] == ["generateschema"]:
if sys.argv[1:2] == ['generateschema']:
return context
project = self.get_project(request=context['request'])
context['parent'] = (
Expand Down

0 comments on commit f284524

Please sign in to comment.