aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/permissions.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/permissions.py')
-rw-r--r--rest_framework/permissions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/permissions.py b/rest_framework/permissions.py
index 45fcfd66..1036663e 100644
--- a/rest_framework/permissions.py
+++ b/rest_framework/permissions.py
@@ -128,7 +128,7 @@ class DjangoModelPermissions(BasePermission):
# Workaround to ensure DjangoModelPermissions are not applied
# to the root view when using DefaultRouter.
- if model_cls is None and getattr(view, '_ignore_model_permissions'):
+ if model_cls is None and getattr(view, '_ignore_model_permissions', False):
return True
assert model_cls, ('Cannot apply DjangoModelPermissions on a view that'