﻿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
28171	Raise an exception if Form's empty_permitted and use_required_attribute arguments conflict	Vlastimil Zíma	Herbert Fortes	"It is possible to easily create a form which does not provide expected behavior. If a form is created with `empty_permitted=True`, it still renders a required attribute into its inputs, although it clearly shouldn't.

{{{
#!python
from django import forms

class FooForm(forms.Form):
     foo = forms.CharField()

unicode(FooForm(empty_permitted=True))
>>> u'<tr><th><label for=""id_foo"">Foo:</label></th><td><input id=""id_foo"" name=""foo"" type=""text"" required /></td></tr>'
}}}

I suggest to disable `use_required_attribute` if `empty_permitted` is enabled and/or raise exception if both attributes are set up contradictory. Even though `empty_permitted` is not a documented attribute, incorrect usage should be limited if possible."	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Accepted	0	0	0	0	0	0
