diff options
| author | Kevin Brown | 2013-07-26 10:59:51 -0400 |
|---|---|---|
| committer | Kevin Brown | 2013-07-26 10:59:51 -0400 |
| commit | 103fed966751680d4ac3dc8125b6807e34bb436a (patch) | |
| tree | eaf73df33dbe3e1f6951a48f82d326a194493704 | |
| parent | 0fa9866848238ed355461a619e5aa9a148403f5f (diff) | |
| download | django-rest-framework-103fed966751680d4ac3dc8125b6807e34bb436a.tar.bz2 | |
Fixed reversed arguments in assertion
| -rw-r--r-- | rest_framework/serializers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index 023f7ccf..682a99a4 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -690,7 +690,7 @@ class ModelSerializer(Serializer): assert field_name in ret, \ "Noexistant field '%s' specified in `read_only_fields` " \ "on serializer '%s'." % \ - (self.__class__.__name__, field_name) + (field_name, self.__class__.__name__) ret[field_name].read_only = True return ret |
