mirror of
https://github.com/django/django.git
synced 2025-08-08 04:48:27 +00:00
[1.6.x] Fixed #22622 -- Added ugettext_lazy import in docs
Backport of 7271f5db78
from master
This commit is contained in:
parent
50a289d05f
commit
1a3371d1e4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue