aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/serializers.html
diff options
context:
space:
mode:
Diffstat (limited to 'api-guide/serializers.html')
-rw-r--r--api-guide/serializers.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/serializers.html b/api-guide/serializers.html
index 97cff7b8..2536b149 100644
--- a/api-guide/serializers.html
+++ b/api-guide/serializers.html
@@ -332,7 +332,7 @@ class EventSerializer(serializers.Serializer):
"""
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
</code></pre>