Commit fa29f7dd by Corentin Smith

Fix minor typo

parent 512a6db2
...@@ -935,7 +935,7 @@ class ModelSerializer(Serializer): ...@@ -935,7 +935,7 @@ class ModelSerializer(Serializer):
# If `Meta.exclude` is included, then remove those fields. # If `Meta.exclude` is included, then remove those fields.
for field_name in exclude: for field_name in exclude:
assert field_name in fields, ( assert field_name in fields, (
"The field '{field_name}' was include on serializer " "The field '{field_name}' was included on serializer "
"{serializer_class} in the 'exclude' option, but does " "{serializer_class} in the 'exclude' option, but does "
"not match any model field.".format( "not match any model field.".format(
field_name=field_name, field_name=field_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment