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
d740bae9
Commit
d740bae9
authored
Jul 07, 2017
by
Ryan P Kilby
Committed by
Carlton Gibson
Sep 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update json imports
parent
b64f8066
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
+6
-8
rest_framework/fields.py
+1
-2
rest_framework/parsers.py
+1
-1
rest_framework/renderers.py
+1
-2
rest_framework/utils/serializer_helpers.py
+1
-1
tests/test_renderers.py
+1
-1
tests/test_routers.py
+1
-1
No files found.
rest_framework/fields.py
View file @
d740bae9
...
@@ -5,7 +5,6 @@ import copy
...
@@ -5,7 +5,6 @@ import copy
import
datetime
import
datetime
import
decimal
import
decimal
import
inspect
import
inspect
import
json
import
re
import
re
import
uuid
import
uuid
from
collections
import
OrderedDict
from
collections
import
OrderedDict
...
@@ -37,7 +36,7 @@ from rest_framework.compat import (
...
@@ -37,7 +36,7 @@ from rest_framework.compat import (
)
)
from
rest_framework.exceptions
import
ErrorDetail
,
ValidationError
from
rest_framework.exceptions
import
ErrorDetail
,
ValidationError
from
rest_framework.settings
import
api_settings
from
rest_framework.settings
import
api_settings
from
rest_framework.utils
import
html
,
humanize_datetime
,
representation
from
rest_framework.utils
import
html
,
humanize_datetime
,
json
,
representation
class
empty
:
class
empty
:
...
...
rest_framework/parsers.py
View file @
d740bae9
...
@@ -7,7 +7,6 @@ on the request, such as form content or json encoded data.
...
@@ -7,7 +7,6 @@ on the request, such as form content or json encoded data.
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
codecs
import
codecs
import
json
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.files.uploadhandler
import
StopFutureHandlers
from
django.core.files.uploadhandler
import
StopFutureHandlers
...
@@ -23,6 +22,7 @@ from django.utils.six.moves.urllib import parse as urlparse
...
@@ -23,6 +22,7 @@ from django.utils.six.moves.urllib import parse as urlparse
from
rest_framework
import
renderers
from
rest_framework
import
renderers
from
rest_framework.exceptions
import
ParseError
from
rest_framework.exceptions
import
ParseError
from
rest_framework.utils
import
json
class
DataAndFiles
(
object
):
class
DataAndFiles
(
object
):
...
...
rest_framework/renderers.py
View file @
d740bae9
...
@@ -9,7 +9,6 @@ REST framework also provides an HTML renderer that renders the browsable API.
...
@@ -9,7 +9,6 @@ REST framework also provides an HTML renderer that renders the browsable API.
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
base64
import
base64
import
json
from
collections
import
OrderedDict
from
collections
import
OrderedDict
from
django
import
forms
from
django
import
forms
...
@@ -30,7 +29,7 @@ from rest_framework.compat import (
...
@@ -30,7 +29,7 @@ from rest_framework.compat import (
from
rest_framework.exceptions
import
ParseError
from
rest_framework.exceptions
import
ParseError
from
rest_framework.request
import
is_form_media_type
,
override_method
from
rest_framework.request
import
is_form_media_type
,
override_method
from
rest_framework.settings
import
api_settings
from
rest_framework.settings
import
api_settings
from
rest_framework.utils
import
encoders
from
rest_framework.utils
import
encoders
,
json
from
rest_framework.utils.breadcrumbs
import
get_breadcrumbs
from
rest_framework.utils.breadcrumbs
import
get_breadcrumbs
from
rest_framework.utils.field_mapping
import
ClassLookupDict
from
rest_framework.utils.field_mapping
import
ClassLookupDict
...
...
rest_framework/utils/serializer_helpers.py
View file @
d740bae9
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
collections
import
collections
import
json
from
collections
import
OrderedDict
from
collections
import
OrderedDict
from
django.utils.encoding
import
force_text
from
django.utils.encoding
import
force_text
from
rest_framework.compat
import
unicode_to_repr
from
rest_framework.compat
import
unicode_to_repr
from
rest_framework.utils
import
json
class
ReturnDict
(
OrderedDict
):
class
ReturnDict
(
OrderedDict
):
...
...
tests/test_renderers.py
View file @
d740bae9
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
json
import
re
import
re
from
collections
import
MutableMapping
,
OrderedDict
from
collections
import
MutableMapping
,
OrderedDict
...
@@ -24,6 +23,7 @@ from rest_framework.request import Request
...
@@ -24,6 +23,7 @@ from rest_framework.request import Request
from
rest_framework.response
import
Response
from
rest_framework.response
import
Response
from
rest_framework.settings
import
api_settings
from
rest_framework.settings
import
api_settings
from
rest_framework.test
import
APIRequestFactory
from
rest_framework.test
import
APIRequestFactory
from
rest_framework.utils
import
json
from
rest_framework.views
import
APIView
from
rest_framework.views
import
APIView
DUMMYSTATUS
=
status
.
HTTP_200_OK
DUMMYSTATUS
=
status
.
HTTP_200_OK
...
...
tests/test_routers.py
View file @
d740bae9
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
json
from
collections
import
namedtuple
from
collections
import
namedtuple
import
pytest
import
pytest
...
@@ -15,6 +14,7 @@ from rest_framework.decorators import detail_route, list_route
...
@@ -15,6 +14,7 @@ from rest_framework.decorators import detail_route, list_route
from
rest_framework.response
import
Response
from
rest_framework.response
import
Response
from
rest_framework.routers
import
DefaultRouter
,
SimpleRouter
from
rest_framework.routers
import
DefaultRouter
,
SimpleRouter
from
rest_framework.test
import
APIRequestFactory
from
rest_framework.test
import
APIRequestFactory
from
rest_framework.utils
import
json
factory
=
APIRequestFactory
()
factory
=
APIRequestFactory
()
...
...
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