From 7271f5db78f7c369f5dba1c0013b5eff584114df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niclas=20=C3=85hd=C3=A9n?= Date: Fri, 16 May 2014 17:01:17 +0200 Subject: [PATCH] Fixed #22622 -- Added ugettext_lazy import in docs --- docs/topics/forms/modelforms.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index e51eda12e6..87f7c2e952 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -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