We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb55b8 commit 5a1e723Copy full SHA for 5a1e723
oauth2_provider/backends.py
@@ -1,5 +1,4 @@
1
-from django.contrib.auth import get_user_model
2
-
+from .compat import get_user_model
3
from .oauth2_backends import get_oauthlib_core
4
5
UserModel = get_user_model()
oauth2_provider/tests/test_auth_backends.py
@@ -1,10 +1,10 @@
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
from django.contrib.auth.models import AnonymousUser
from django.utils.timezone import now, timedelta
6
from django.conf.global_settings import MIDDLEWARE_CLASSES
7
+from ..compat import get_user_model
8
from ..models import get_application_model
9
from ..models import AccessToken
10
from ..backends import OAuth2Backend
0 commit comments