Merge "Don't add required attribute to html form fields" into stable/pike

This commit is contained in:
Zuul 2018-02-17 04:47:36 +00:00 committed by Gerrit Code Review
commit 28c81e3432

View File

@ -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"),