mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
commit
6e92e415aa
|
@ -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