mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54: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
|
||||
try:
|
||||
import guardian
|
||||
import guardian.shortcuts # Fixes #1624
|
||||
except ImportError:
|
||||
guardian = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user