aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
diff options
context:
space:
mode:
authorDan Stephenson2013-08-10 01:22:47 +0100
committerDan Stephenson2013-08-10 01:22:47 +0100
commitbbdcbe945248c5448540a1ab746b8a4b8bc8f95b (patch)
treeb7079e24b77a59048864aea631a91cf7a220fae0 /rest_framework/serializers.py
parent2761d6a4724d3dc60f817ab0718446564ca62f80 (diff)
downloaddjango-rest-framework-bbdcbe945248c5448540a1ab746b8a4b8bc8f95b.tar.bz2
Spelling correction on read_only_fields err msg
just spotted extras
Diffstat (limited to 'rest_framework/serializers.py')
-rw-r--r--rest_framework/serializers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 682a99a4..9e85cb46 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -685,10 +685,10 @@ class ModelSerializer(Serializer):
assert field_name not in self.base_fields.keys(), \
"field '%s' on serializer '%s' specfied in " \
"`read_only_fields`, but also added " \
- "as an explict field. Remove it from `read_only_fields`." % \
+ "as an explicit field. Remove it from `read_only_fields`." % \
(field_name, self.__class__.__name__)
assert field_name in ret, \
- "Noexistant field '%s' specified in `read_only_fields` " \
+ "Non-existant field '%s' specified in `read_only_fields` " \
"on serializer '%s'." % \
(field_name, self.__class__.__name__)
ret[field_name].read_only = True