File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 44Massimiliano Pippi
55Federico Frenguelli
66Stéphane Raimbault
7- Emanuele Palazzetti
7+ Emanuele Palazzetti
8+
9+ Contributors
10+ ============
11+
12+ David Fischer
Original file line number Diff line number Diff line change 33from django .core .urlresolvers import reverse
44from django .db import models
55from django .utils import timezone
6- from django .db .models import get_model
6+ try :
7+ # Django's new application loading system
8+ from django .apps import apps
9+ get_model = apps .get_model
10+ except ImportError :
11+ from django .db .models import get_model
712from django .utils .translation import ugettext_lazy as _
813from django .utils .encoding import python_2_unicode_compatible
914from django .core .exceptions import ImproperlyConfigured
Original file line number Diff line number Diff line change 2020import six
2121
2222from django .conf import settings
23- from django .utils import importlib
23+ try :
24+ # Available in Python 2.7+
25+ import importlib
26+ except ImportError :
27+ from django .utils import importlib
2428
2529
2630USER_SETTINGS = getattr (settings , 'OAUTH2_PROVIDER' , None )
You can’t perform that action at this time.
0 commit comments