From 9d624d5b6ba36e6eeae3477931857a100d3b0f3f Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 29 May 2015 16:57:13 +0200 Subject: [PATCH] Update validators.md Missing colon. --- docs/api-guide/validators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/validators.md b/docs/api-guide/validators.md index afee2e5fd..69408c4a2 100644 --- a/docs/api-guide/validators.md +++ b/docs/api-guide/validators.md @@ -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)