1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00

Fixed #22622 -- Added ugettext_lazy import in docs

This commit is contained in:
Niclas Åhdén 2014-05-16 17:01:17 +02:00 committed by Tim Graham
parent 1be03aff5c
commit 7271f5db78

View File

@ -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