summaryrefslogtreecommitdiff
path: root/docs/ref/validators.txt
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-03-22 21:30:49 +0100
committerClaude Paroz <claude@2xlibre.net>2014-03-22 21:32:20 +0100
commit3a97f992fbfbcf8b0480875b257e5d541a4b8315 (patch)
treec5ac40df266f098c5b7b1378864685869fe2a324 /docs/ref/validators.txt
parent232181d1c5307d9af5fc292682661e91439a9289 (diff)
Fixed #22313 -- Removed 'u' prefixes from documentation
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::