mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Fix minor typo
This commit is contained in:
parent
512a6db21e
commit
fa29f7dd1f
|
@ -935,7 +935,7 @@ class ModelSerializer(Serializer):
|
|||
# If `Meta.exclude` is included, then remove those fields.
|
||||
for field_name in exclude:
|
||||
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 "
|
||||
"not match any model field.".format(
|
||||
field_name=field_name,
|
||||
|
|
Loading…
Reference in New Issue
Block a user