From 1b1510cf81a32cc512be6c917dca3783830c44f6 Mon Sep 17 00:00:00 2001 From: Cat Smith <910384+catsmith@users.noreply.github.com> Date: Sat, 13 Apr 2024 16:15:42 +0100 Subject: [PATCH] improve comment --- views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views.py b/views.py index 4222a67..e1af90f 100644 --- a/views.py +++ b/views.py @@ -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, )