update docs/api-guide/serializers.md: consistency (#6320)

This commit is contained in:
Mice Pápai 2018-11-15 15:44:54 +01:00 committed by Tom Christie
parent 2c0b2bd44e
commit d0369b27cd

View File

@ -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")