Update validators.md

Missing colon.
This commit is contained in:
Marc 2015-05-29 16:57:13 +02:00
parent ecb3ba5e1f
commit 9d624d5b6b

View File

@ -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)