Minor docs example fix

Dates are smaller when they happen before.
This commit is contained in:
Charlie Denton 2014-02-21 14:23:33 +00:00
parent 9841069373
commit c3967c08ab

View File

@ -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.
"""
if attrs['start'] < attrs['finish']:
if attrs['start'] > attrs['finish']:
raise serializers.ValidationError("finish must occur after start")
return attrs