mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Fixed #1624 (thanks @abraithwaite)
This commit is contained in:
parent
a3e75e4c6c
commit
e8ec81f5e9
|
@ -51,6 +51,7 @@ except ImportError:
|
||||||
# guardian is optional
|
# guardian is optional
|
||||||
try:
|
try:
|
||||||
import guardian
|
import guardian
|
||||||
|
import guardian.shortcuts # Fixes #1624
|
||||||
except ImportError:
|
except ImportError:
|
||||||
guardian = None
|
guardian = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user