diff options
| author | bwreilly | 2013-09-06 12:35:06 -0500 |
|---|---|---|
| committer | bwreilly | 2013-09-06 12:35:06 -0500 |
| commit | b07de86ad372a185c05c1dd77ccd7bee3801996e (patch) | |
| tree | 99586e7fa97b3c4cd939bf5ebf055e14d02bcfa0 /rest_framework/runtests/settings.py | |
| parent | 4a9dcfa76089143bbeb5cd43fa3a406365d89e96 (diff) | |
| download | django-rest-framework-b07de86ad372a185c05c1dd77ccd7bee3801996e.tar.bz2 | |
some properly failing tests, set up for standard permissions
Diffstat (limited to 'rest_framework/runtests/settings.py')
| -rw-r--r-- | rest_framework/runtests/settings.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rest_framework/runtests/settings.py b/rest_framework/runtests/settings.py index b3702d0b..6750376f 100644 --- a/rest_framework/runtests/settings.py +++ b/rest_framework/runtests/settings.py @@ -123,6 +123,17 @@ else: 'provider.oauth2', ) +# guardian is optional +try: + import guardian +except ImportError: + pass +else: + ANONYMOUS_USER_ID = -1 + INSTALLED_APPS += ( + 'guardian', + ) + STATIC_URL = '/static/' PASSWORD_HASHERS = ( |
