diff options
| author | Tom Christie | 2013-03-12 19:07:30 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-03-12 19:07:30 +0000 |
| commit | f513db714db76849448bf2e2412428ee7121ebf6 (patch) | |
| tree | 7735202eec798c41586460e5ea504f8f39504434 /rest_framework/compat.py | |
| parent | e8db504a9802c6dcc111a327f681e01b9b3e2e16 (diff) | |
| download | django-rest-framework-f513db714db76849448bf2e2412428ee7121ebf6.tar.bz2 | |
Clean up TokenHasReadWriteScope slightly
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py index e9570a08..7b2ef738 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -445,19 +445,15 @@ except ImportError: # OAuth 2 support is optional try: import provider.oauth2 as oauth2_provider - # # Hack to fix submodule import issues - # submodules = ['backends', 'forms', 'managers', 'models', 'urls', 'views'] - # for s in submodules: - # mod = __import__('provider.oauth2.%s.*' % s) - # setattr(oauth2_provider, s, mod) from provider.oauth2 import backends as oauth2_provider_backends from provider.oauth2 import models as oauth2_provider_models from provider.oauth2 import forms as oauth2_provider_forms from provider import scope as oauth2_provider_scope - + from provider import constants as oauth2_constants except ImportError: oauth2_provider = None oauth2_provider_backends = None oauth2_provider_models = None oauth2_provider_forms = None oauth2_provider_scope = None + oauth2_constants = None |
