Improve error message.

This commit is contained in:
Nicolas Delaby 2015-04-22 11:22:37 +02:00
parent 6f66798ad3
commit 24e9473036

View File

@ -122,7 +122,7 @@ class DjangoModelPermissions(BasePermission):
assert queryset is not None, (
'Cannot apply DjangoModelPermissions on a view that '
'does not have `.queryset` property.'
'does not have `.queryset` property nor redefines `.get_queryset()`.'
)
perms = self.get_required_permissions(request.method, queryset.model)