From 24e94730368c96ffe809370dad8ae5140136279d Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Wed, 22 Apr 2015 11:22:37 +0200 Subject: [PATCH] Improve error message. --- rest_framework/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/permissions.py b/rest_framework/permissions.py index de4ebedb6..8fa7e4452 100644 --- a/rest_framework/permissions.py +++ b/rest_framework/permissions.py @@ -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)