Re: label_tag() escapes output twice

2013-07-19 Thread sephii
On Friday, 19 July 2013 11:31:27 UTC+2, Tom Evans wrote: > > On Thu, Jul 18, 2013 at 10:31 PM, sephii > > wrote: > > Hello, > > > > I'm trying to output a simple form but the label_tag() method tries to > > escape the field label twice. Here's what I have: > > > > # models.py > > # _ is uge

Re: label_tag() escapes output twice

2013-07-19 Thread Ramiro Morales
On Fri, Jul 19, 2013 at 4:09 PM, sephii wrote: > Anyway it looks like a bug so I'll just report it. Can you test things easily with the in-development 1.6 and trunk? There have been a few changes to that code lately and the issue could have been fixed. It's the kind of change that isn't backport

Re: label_tag() escapes output twice

2013-07-19 Thread Tom Evans
On Thu, Jul 18, 2013 at 10:31 PM, sephii wrote: > Hello, > > I'm trying to output a simple form but the label_tag() method tries to > escape the field label twice. Here's what I have: > > # models.py > # _ is ugettext_lazy, if it matters > class MyModel(models.Model): > name = models.CharFiel

label_tag() escapes output twice

2013-07-18 Thread sephii
Hello, I'm trying to output a simple form but the label_tag() method tries to escape the field label twice. Here's what I have: # models.py # _ is ugettext_lazy, if it matters class MyModel(models.Model): name = models.CharField(_('My label')) # forms.py class MyForm(forms.ModelForm):