Adjust wording

This commit is contained in:
Carlton Gibson 2017-08-22 20:44:19 +02:00 committed by GitHub
parent 6f2c3bcb12
commit 6a3b8cfa4c

View File

@ -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)