﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20618	Giving a field an empty label breaks `BoundField.label_tag` (IndexError)	Baptiste Mispelon	Baptiste Mispelon	"The following code shows the regression:
{{{#!python
from django import forms

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"	Bug	closed	Forms	dev	Release blocker	fixed			Unreviewed	0	0	0	0	0	0
