aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
authorXavier Ordoquy2014-06-08 09:03:21 +0200
committerXavier Ordoquy2014-06-08 09:03:21 +0200
commite8ec81f5e985f9cc9f524f77ec23013be918b990 (patch)
tree3a1fa8d74a80810207a46742eb9f5890ef959ee2 /rest_framework/compat.py
parenta3e75e4c6c2f5a1b6b3c7740138829bb88543679 (diff)
downloaddjango-rest-framework-e8ec81f5e985f9cc9f524f77ec23013be918b990.tar.bz2
Fixed #1624 (thanks @abraithwaite)
Diffstat (limited to 'rest_framework/compat.py')
-rw-r--r--rest_framework/compat.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py
index d155f554..fdf12448 100644
--- a/rest_framework/compat.py
+++ b/rest_framework/compat.py
@@ -51,6 +51,7 @@ except ImportError:
# guardian is optional
try:
import guardian
+ import guardian.shortcuts # Fixes #1624
except ImportError:
guardian = None