mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
update docs/api-guide/serializers.md: consistency (#6320)
This commit is contained in:
parent
2c0b2bd44e
commit
d0369b27cd
|
@ -208,7 +208,7 @@ To do any other validation that requires access to multiple fields, add a method
|
|||
|
||||
def validate(self, data):
|
||||
"""
|
||||
Check that the start is before the stop.
|
||||
Check that start is before finish.
|
||||
"""
|
||||
if data['start'] > data['finish']:
|
||||
raise serializers.ValidationError("finish must occur after start")
|
||||
|
|
Loading…
Reference in New Issue
Block a user