File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -81,17 +81,12 @@ def get_queryset(self):
81
81
4. raise a ``NotFound`` exception otherwise
82
82
"""
83
83
84
- # NOTE: ``super().get_queryset`` produces the filter by ``NestedViewSetMixin``
85
- # we need to have defined the class attribute as ``queryset = Model.objects.all()``
84
+ # We need to have defined the class attribute as ``queryset = Model.objects.all()``
86
85
queryset = super ().get_queryset ()
87
86
88
87
# Detail requests are public
89
88
if self .detail :
90
89
return self .detail_objects (queryset , self .request .user )
91
90
92
91
# List view are only allowed if user is owner of parent project
93
- listing_objects = self .listing_objects (queryset , self .request .user )
94
- if listing_objects :
95
- return listing_objects
96
-
97
- raise NotFound
92
+ return self .listing_objects (queryset , self .request .user )
You can’t perform that action at this time.
0 commit comments