mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
necessary test settings for guardian
This commit is contained in:
parent
b07de86ad3
commit
57d6b5fb7c
|
@ -130,6 +130,10 @@ except ImportError:
|
|||
pass
|
||||
else:
|
||||
ANONYMOUS_USER_ID = -1
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'django.contrib.auth.backends.ModelBackend', # default
|
||||
'guardian.backends.ObjectPermissionBackend',
|
||||
)
|
||||
INSTALLED_APPS += (
|
||||
'guardian',
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user