#7927 closed (worksforme)
Form Field not rendered
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | forms, i18n', | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
from django import forms from django.utils.translation import ugettext_lazy class SearchForm(forms.Form): realm = forms.CharField(max_length = 100, required = True, widget = forms.TextInput(attrs = {' title': ugettext_lazy("lblSearchRealm") }))
If ugettext_lazy("lblSearchRealm") returns a value containing an umlaut, the "realm" fields is totally absent from the generated output for the page.
Note:
See TracTickets
for help on using tickets.
Ran the code, both through shell and a rendered template, with and without fixing the space in ' title':, with lblSearchRealm set to "myfürm" in the appropriate mo/po, and I got the input field in every case.
Template:
And Shell:
Results in:
Works for me.