mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Improve error message.
This commit is contained in:
parent
6f66798ad3
commit
24e9473036
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user