class F(forms.Form):
foo = forms.CharField(label='')
print(F()['foo'].label_tag())
}}}
On django 1.5, this prints `<label for="id_foo"></label>`. On master, it
raises an IndexError.
This is regression was introduced by
584bd14dcfdee9585fec7794d53ce120ea73d0bc.
Previously, calling the `label_tag` on a field with an empty label would
--
Ticket URL: <https://code.djangoproject.com/ticket/20618>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"3128f3d38d1db0bc01da9a4bf4be81119079d73a"]:
{{{
#!CommitTicketReference repository=""
revision="3128f3d38d1db0bc01da9a4bf4be81119079d73a"
Fixed #20618 -- Fixed regression in `BoundField.label_tag`.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20618#comment:1>