diff options
| author | Niclas Åhdén <niclas@brightweb.se> | 2014-05-16 17:01:17 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-05-16 11:20:58 -0400 |
| commit | 0504d19db0482fee0e9adda3bf84cda212c07fe9 (patch) | |
| tree | 9558a084983f23829ff852d7d721aae6cfee6746 /docs | |
| parent | 2a66d12e77821fbd4f2e4c3cb93eb9f84ca6f9ab (diff) | |
[1.7.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.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 3de5649e2b..a317ecace6 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -513,6 +513,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 |
