From 061cc5a42b3ab02ed62c79e81a37483412402b19 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Tue, 30 Jun 2015 16:33:01 +0100 Subject: [PATCH] Fixed #2900 -- Made example validator class in docs inherit from object --- 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 69408c4a2..e54ebfc38 100644 --- a/docs/api-guide/validators.md +++ b/docs/api-guide/validators.md @@ -204,7 +204,7 @@ A validator may be any callable that raises a `serializers.ValidationError` on f To write a class based validator, use the `__call__` method. Class based validators are useful as they allow you to parameterize and reuse behavior. - class MultipleOf: + class MultipleOf(object): def __init__(self, base): self.base = base