Merge pull request #1436 from meshy/patch-1

Minor docs example fix
This commit is contained in:
Tom Christie 2014-02-21 14:24:27 +00:00
commit 6e92e415aa

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