mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Adjust wording
This commit is contained in:
parent
6f2c3bcb12
commit
6a3b8cfa4c
|
@ -123,7 +123,7 @@ class DjangoModelPermissions(BasePermission):
|
|||
if hasattr(view, 'get_queryset'):
|
||||
queryset = view.get_queryset()
|
||||
assert queryset is not None, (
|
||||
'Return of {}.get_queryset() was None'.format(view.__class__.__name__)
|
||||
'{}.get_queryset() returned None'.format(view.__class__.__name__)
|
||||
)
|
||||
else:
|
||||
queryset = getattr(view, 'queryset', None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user