mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Minor docs example fix
Dates are smaller when they happen before.
This commit is contained in:
parent
9841069373
commit
c3967c08ab
|
@ -161,7 +161,7 @@ To do any other validation that requires access to multiple fields, add a method
|
||||||
"""
|
"""
|
||||||
Check that the start is before the stop.
|
Check that the start is before the stop.
|
||||||
"""
|
"""
|
||||||
if attrs['start'] < attrs['finish']:
|
if attrs['start'] > attrs['finish']:
|
||||||
raise serializers.ValidationError("finish must occur after start")
|
raise serializers.ValidationError("finish must occur after start")
|
||||||
return attrs
|
return attrs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user