Skip to content

Commit 103fed9

Browse files
committed
Fixed reversed arguments in assertion
1 parent 0fa9866 commit 103fed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)