Skip to content

Commit 0e8a01e

Browse files
committed
Merge pull request #1010 from kevin-brown/issue_1008
Fixed arguments in assertion
2 parents 0fa9866 + 9088c18 commit 0e8a01e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/topics/credits.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ The following people have helped make REST framework great.
149149
* Matthias Jacob - [cyroxx]
150150
* Pavel Zinovkin - [pzinovkin]
151151
* Will Kahn-Greene - [willkg]
152+
* Kevin Brown - [kevin-brown]
152153

153154
Many thanks to everyone who's contributed to the project.
154155

@@ -334,3 +335,4 @@ You can also contact [@_tomchristie][twitter] directly on twitter.
334335
[cyroxx]: https://github.com/cyroxx
335336
[pzinovkin]: https://github.com/pzinovkin
336337
[willkg]: https://github.com/willkg
338+
[kevin-brown]: https://github.com/kevin-brown

rest_framework/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def get_default_fields(self):
690690
assert field_name in ret, \
691691
"Noexistant field '%s' specified in `read_only_fields` " \
692692
"on serializer '%s'." % \
693-
(self.__class__.__name__, field_name)
693+
(field_name, self.__class__.__name__)
694694
ret[field_name].read_only = True
695695

696696
return ret

0 commit comments

Comments
 (0)