Loading docs/topics/forms/modelforms.txt +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
docs/topics/forms/modelforms.txt +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading