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
0e8a01e5
Commit
0e8a01e5
authored
Jul 26, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1010 from kevin-brown/issue_1008
Fixed arguments in assertion
parents
0fa98668
9088c18d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
docs/topics/credits.md
+2
-0
rest_framework/serializers.py
+1
-1
No files found.
docs/topics/credits.md
View file @
0e8a01e5
...
@@ -149,6 +149,7 @@ The following people have helped make REST framework great.
...
@@ -149,6 +149,7 @@ The following people have helped make REST framework great.
*
Matthias Jacob -
[
cyroxx
]
*
Matthias Jacob -
[
cyroxx
]
*
Pavel Zinovkin -
[
pzinovkin
]
*
Pavel Zinovkin -
[
pzinovkin
]
*
Will Kahn-Greene -
[
willkg
]
*
Will Kahn-Greene -
[
willkg
]
*
Kevin Brown -
[
kevin-brown
]
Many thanks to everyone who's contributed to the project.
Many thanks to everyone who's contributed to the project.
...
@@ -334,3 +335,4 @@ You can also contact [@_tomchristie][twitter] directly on twitter.
...
@@ -334,3 +335,4 @@ You can also contact [@_tomchristie][twitter] directly on twitter.
[
cyroxx
]:
https://github.com/cyroxx
[
cyroxx
]:
https://github.com/cyroxx
[
pzinovkin
]:
https://github.com/pzinovkin
[
pzinovkin
]:
https://github.com/pzinovkin
[
willkg
]:
https://github.com/willkg
[
willkg
]:
https://github.com/willkg
[
kevin-brown
]:
https://github.com/kevin-brown
rest_framework/serializers.py
View file @
0e8a01e5
...
@@ -690,7 +690,7 @@ class ModelSerializer(Serializer):
...
@@ -690,7 +690,7 @@ class ModelSerializer(Serializer):
assert
field_name
in
ret
,
\
assert
field_name
in
ret
,
\
"Noexistant field '
%
s' specified in `read_only_fields` "
\
"Noexistant field '
%
s' specified in `read_only_fields` "
\
"on serializer '
%
s'."
%
\
"on serializer '
%
s'."
%
\
(
self
.
__class__
.
__name__
,
field_name
)
(
field_name
,
self
.
__class__
.
__name__
)
ret
[
field_name
]
.
read_only
=
True
ret
[
field_name
]
.
read_only
=
True
return
ret
return
ret
...
...
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