summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNiclas Åhdén <niclas@brightweb.se>2014-05-16 17:01:17 +0200
committerTim Graham <timograham@gmail.com>2014-05-16 11:21:05 -0400
commit1a3371d1e41dba8d49246e6fab1bdf5b2b236d1c (patch)
tree2a0c420d577cb9970c85de08b2865a8552b1a6d8 /docs
parent50a289d05fba760716287d582c7ea19edd1159cc (diff)
[1.6.x] Fixed #22622 -- Added ugettext_lazy import in docs
Backport of 7271f5db78 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/modelforms.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index fd12a919ba..1aa378d906 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -497,6 +497,8 @@ attributes of the inner ``Meta`` class if you want to further customize a field.
For example if you wanted to customize the wording of all user facing strings for
the ``name`` field::
+ from django.utils.translation import ugettext_lazy as _
+
class AuthorForm(ModelForm):
class Meta:
model = Author