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
b3e03cd8
Commit
b3e03cd8
authored
Apr 22, 2015
by
kazmiruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes broken test + importlib warnings
parent
47c61679
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
rest_framework/serializers.py
+4
-1
rest_framework/settings.py
+6
-1
No files found.
rest_framework/serializers.py
View file @
b3e03cd8
...
...
@@ -16,7 +16,7 @@ import datetime
import
inspect
import
types
from
decimal
import
Decimal
from
django.contrib.contenttypes.
generic
import
GenericForeignKey
from
django.contrib.contenttypes.
fields
import
GenericForeignKey
from
django.core.paginator
import
Page
from
django.db
import
models
from
django.forms
import
widgets
...
...
@@ -114,6 +114,9 @@ class OrderedDictWithMetadata(OrderedDict):
"""
A sorted dict-like object, that can have additional properties attached.
"""
def
__reduce__
(
self
):
return
self
.
__class__
,
(
OrderedDict
(
self
),
)
def
__getstate__
(
self
):
"""
Used by pickle (e.g., caching).
...
...
rest_framework/settings.py
View file @
b3e03cd8
...
...
@@ -19,9 +19,14 @@ back to the defaults.
"""
from
__future__
import
unicode_literals
from
django.conf
import
settings
from
django.utils
import
importlib
,
six
from
django.utils
import
six
from
rest_framework
import
ISO_8601
try
:
import
importlib
except
ImportError
:
from
django.utils
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