Merge "Don't add required attribute to html form fields"
This commit is contained in:
commit
32e9e1d1b1
@ -47,6 +47,7 @@ class Login(django_auth_forms.AuthenticationForm):
|
|||||||
Inherits from the base ``django.contrib.auth.forms.AuthenticationForm``
|
Inherits from the base ``django.contrib.auth.forms.AuthenticationForm``
|
||||||
class for added security features.
|
class for added security features.
|
||||||
"""
|
"""
|
||||||
|
use_required_attribute = False
|
||||||
region = forms.ChoiceField(label=_("Region"), required=False)
|
region = forms.ChoiceField(label=_("Region"), required=False)
|
||||||
username = forms.CharField(
|
username = forms.CharField(
|
||||||
label=_("User Name"),
|
label=_("User Name"),
|
||||||
|
Loading…
Reference in New Issue
Block a user