Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
catsmith committed Apr 13, 2024
1 parent 71e1650 commit 1b1510c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ def get_objects(self, request, **kwargs):
return resp.data


# The get for this for private models has to have a fields keyword in get
# because permissions.DjangoModelPermissions, runs get_queryset before running get
# and get_queryset adds fields to self.kwargs. DO not merge this with the ItemList view as it will break it.
# The get for this for private models has to have a fields keyword because permissions.DjangoModelPermissions
# runs get_queryset before running the get function and get_queryset adds fields to self.kwargs.
# Do not merge this with the ItemList view as it will break it.
class PrivateItemList(ItemList):

permission_classes = (permissions.DjangoModelPermissions, )
Expand Down

0 comments on commit 1b1510c

Please sign in to comment.