diff options
| author | Tom Christie | 2014-03-06 20:33:27 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-03-06 20:33:27 +0000 |
| commit | 2090f452b224e60853b40e73d1d0e9aad58cd24a (patch) | |
| tree | 9550083d51dce99acf2e744e85d891dd803d645c /rest_framework/compat.py | |
| parent | ef94861c2d31592c3760a0c0758beb084f452c03 (diff) | |
| parent | 34887ed75625a58d00c986b3ea5526877f4724b2 (diff) | |
| download | django-rest-framework-2090f452b224e60853b40e73d1d0e9aad58cd24a.tar.bz2 | |
Merge pull request #1455 from ericbuehl/master
don't implicitly import provider.oauth2
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 3089b7fb..d155f554 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -550,13 +550,10 @@ except (ImportError, ImproperlyConfigured): # OAuth 2 support is optional try: - import provider.oauth2 as oauth2_provider - from provider.oauth2 import models as oauth2_provider_models - from provider.oauth2 import forms as oauth2_provider_forms + import provider as oauth2_provider from provider import scope as oauth2_provider_scope from provider import constants as oauth2_constants - from provider import __version__ as provider_version - if provider_version in ('0.2.3', '0.2.4'): + if oauth2_provider.__version__ in ('0.2.3', '0.2.4'): # 0.2.3 and 0.2.4 are supported version that do not support # timezone aware datetimes import datetime @@ -566,8 +563,6 @@ try: from django.utils.timezone import now as provider_now except ImportError: oauth2_provider = None - oauth2_provider_models = None - oauth2_provider_forms = None oauth2_provider_scope = None oauth2_constants = None provider_now = None |
