mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Update validators.md
Missing colon.
This commit is contained in:
parent
ecb3ba5e1f
commit
9d624d5b6b
|
@ -209,7 +209,7 @@ To write a class based validator, use the `__call__` method. Class based validat
|
|||
self.base = base
|
||||
|
||||
def __call__(self, value):
|
||||
if value % self.base != 0
|
||||
if value % self.base != 0:
|
||||
message = 'This field must be a multiple of %d.' % self.base
|
||||
raise serializers.ValidationError(message)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user