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:20:31 -0400
commit7271f5db78f7c369f5dba1c0013b5eff584114df (patch)
tree07cb7f3f48f0d877fb7718571a2d0424f81079a4 /docs
parent1be03aff5c24e902b89503dda32891aa4881579e (diff)
Fixed #22622 -- Added ugettext_lazy import in docs
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 e51eda12e6..87f7c2e952 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -507,6 +507,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