summaryrefslogtreecommitdiff
path: root/docs/ref/validators.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/validators.txt')
-rw-r--r--docs/ref/validators.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index eb2e1d0d02..364606666b 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -19,7 +19,7 @@ For example, here's a validator that only allows even numbers::
def validate_even(value):
if value % 2 != 0:
- raise ValidationError(u'%s is not an even number' % value)
+ raise ValidationError('%s is not an even number' % value)
You can add this to a model field via the field's :attr:`~django.db.models.Field.validators`
argument::