We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9a799 commit 190f620Copy full SHA for 190f620
requirements/requirements-optionals.txt
@@ -1,7 +1,7 @@
1
# Optional packages which may be used with REST framework.
2
psycopg2-binary==2.7.5
3
markdown==2.6.11
4
-django-guardian==1.4.9
+django-guardian==1.5.0
5
django-filter==1.1.0
6
coreapi==2.3.1
7
coreschema==0.0.4
rest_framework/compat.py
@@ -161,6 +161,10 @@ def is_guardian_installed():
161
"""
162
django-guardian is optional and only imported if in INSTALLED_APPS.
163
164
+ if six.PY2:
165
+ # Guardian 1.5.0, for Django 2.2 is NOT compatible with Python 2.7.
166
+ # Remove when dropping PY2.
167
+ return False
168
return 'guardian' in settings.INSTALLED_APPS
169
170
0 commit comments