Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
c5eb5b22
Commit
c5eb5b22
authored
Feb 17, 2015
by
Carlton Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move `importlib` fallback into compat.
parent
daf1d59d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
rest_framework/compat.py
+4
-1
rest_framework/settings.py
+1
-5
No files found.
rest_framework/compat.py
View file @
c5eb5b22
...
...
@@ -12,7 +12,10 @@ from django.utils.six.moves.urllib.parse import urlparse as _urlparse
from
django.utils
import
six
import
django
import
inspect
try
:
import
importlib
except
ImportError
:
from
django.utils
import
importlib
def
unicode_repr
(
instance
):
# Get the repr of an instance, but ensure it is a unicode string
...
...
rest_framework/settings.py
View file @
c5eb5b22
...
...
@@ -20,13 +20,9 @@ back to the defaults.
from
__future__
import
unicode_literals
from
django.test.signals
import
setting_changed
from
django.conf
import
settings
try
:
import
importlib
except
ImportError
:
from
django.utils
import
importlib
from
django.utils
import
six
from
rest_framework
import
ISO_8601
from
rest_framework.compat
import
importlib
USER_SETTINGS
=
getattr
(
settings
,
'REST_FRAMEWORK'
,
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment