[1.7.x] Fixed #22622 -- Added ugettext_lazy import in docs

Backport of 7271f5db78 from master
This commit is contained in:
Niclas Åhdén 2014-05-16 17:01:17 +02:00 committed by Tim Graham
parent 2a66d12e77
commit 0504d19db0
1 changed files with 2 additions and 0 deletions

View File

@ -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 For example if you wanted to customize the wording of all user facing strings for
the ``name`` field:: the ``name`` field::
from django.utils.translation import ugettext_lazy as _
class AuthorForm(ModelForm): class AuthorForm(ModelForm):
class Meta: class Meta:
model = Author model = Author