Fixed the is_disabled field in the user form to be optional in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-09 22:38:24 +08:00
parent 1f0685b026
commit 431955b90a

View File

@ -47,7 +47,7 @@ class UserForm(forms.Form):
"required": _("Please fill in the name."), "required": _("Please fill in the name."),
"max_length": _("This name is too long (max 32 characters)."), "max_length": _("This name is too long (max 32 characters)."),
}) })
is_disabled = forms.BooleanField() is_disabled = forms.BooleanField(required=False)
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(UserForm, self).__init__(*args, **kwargs) super(UserForm, self).__init__(*args, **kwargs)