﻿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
20357	Check username field label for None	zhenghao12@…	nobody	"Sometimes when designing ""log-in"" forms, there is a necessity to hide the labels and use input element placeholders to identify the fields.  When I entered the following in my form:

{{{
username = CharField(label='')
}}}

the generated HTML still contained the ''Username'' <label> element.

It turns out that in line [https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L173 173 of django.contrib.auth.forms], the boolean test is too broad/generic.  It does not take into consideration when the label is deliberately set to an empty string.  

The fix to this would affect django/contrib/auth/forms.py file.

I have created a [https://github.com/django/django/pull/1046 pull request] in github:  [https://github.com/django/django/pull/1046 #1046]."	Bug	closed	contrib.auth	dev	Normal	fixed	python	stefan.berder@…	Ready for checkin	0	0	1	0	0	0
