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
773b68e1
Commit
773b68e1
authored
Jan 08, 2017
by
Artem Muterko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in Python files
parent
b352c8a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
rest_framework/fields.py
+1
-1
rest_framework/serializers.py
+1
-1
No files found.
rest_framework/fields.py
View file @
773b68e1
...
...
@@ -1614,7 +1614,7 @@ class JSONField(Field):
def
get_value
(
self
,
dictionary
):
if
html
.
is_html_input
(
dictionary
)
and
self
.
field_name
in
dictionary
:
# When HTML form input is used, mark up the input
# as being a JSON string, rather than a JSON prim
a
tive.
# as being a JSON string, rather than a JSON prim
i
tive.
class
JSONString
(
six
.
text_type
):
def
__new__
(
self
,
value
):
ret
=
six
.
text_type
.
__new__
(
self
,
value
)
...
...
rest_framework/serializers.py
View file @
773b68e1
...
...
@@ -1177,7 +1177,7 @@ class ModelSerializer(Serializer):
if
postgres_fields
and
isinstance
(
model_field
,
postgres_fields
.
ArrayField
):
# Populate the `child` argument on `ListField` instances generated
# for the Postgr
SQL spec
fic `ArrayField`.
# for the Postgr
eSQL speci
fic `ArrayField`.
child_model_field
=
model_field
.
base_field
child_field_class
,
child_field_kwargs
=
self
.
build_standard_field
(
'child'
,
child_model_field
...
...
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