Commit 1a3371d1 authored by Niclas Åhdén's avatar Niclas Åhdén Committed by Tim Graham
Browse files

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

Backport of 7271f5db from master
parent 50a289d0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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