Skip to content

Commit

Permalink
Minor docs example fix
Browse files Browse the repository at this point in the history
Dates are smaller when they happen before.
  • Loading branch information
meshy committed Feb 21, 2014
1 parent 9841069 commit c3967c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/serializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c3967c0

Please sign in to comment.