#17858: ugettext_lazy problem in models and modelsforms
------------------------------+--------------------------------------
Reporter: javier@… | Owner: Javier
Type: Bug | Status: new
Component: Translations | Version: 1.3
Severity: Normal | Keywords: ugettext modelform forms
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
FIrst, sorry for my english, I'm Chilean.
I'm trying to use i18n but this don't works fine.
I made a model class
{{{
class Person(models.Model)
name = models.CharField(_("name"), max_length=255)
}}}
and I use a modelForm
{{{
class PersonForm(ModelForm):
class Meta:
model = Person
}}}
when I show the PersonForm in a view this don't show anything, but if I
use a {% trans "name" %} in a tempalte, this works fine.
In some part I saw "Lazy unexpected type" in __wrapper__ I don't remember
well.
This is curios, when I put #,fuzzy in a .po file, the form show the
translate god but not the template.
I hope you can help me.
--
Ticket URL: <https://code.djangoproject.com/ticket/17858>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.