Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 66572cc

Browse files
committed
We dropped support for django < 1.7
1 parent 146cff6 commit 66572cc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎rest_framework_json_api/utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import inflection
88
from django.conf import settings
99
from django.utils import six
10+
from django.utils.module_loading import import_string as import_class_from_dotted_path
1011
from django.utils.translation import ugettext_lazy as _
1112
from rest_framework.exceptions import APIException
1213

@@ -20,13 +21,6 @@
2021
except ImportError:
2122
HyperlinkedRouterField = type(None)
2223

23-
import django
24-
25-
if django.VERSION < (1, 7):
26-
from django.utils.module_loading import import_by_path as import_class_from_dotted_path
27-
else:
28-
from django.utils.module_loading import import_string as import_class_from_dotted_path
29-
3024

3125
def get_resource_name(context):
3226
"""

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /