From 431955b90a3d29616365393de8dce769ec09af1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 9 Aug 2020 22:38:24 +0800 Subject: [PATCH] Fixed the is_disabled field in the user form to be optional in the Mia core application. --- mia_core/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mia_core/forms.py b/mia_core/forms.py index ffbaaf9..a59a0db 100644 --- a/mia_core/forms.py +++ b/mia_core/forms.py @@ -47,7 +47,7 @@ class UserForm(forms.Form): "required": _("Please fill in the name."), "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): super(UserForm, self).__init__(*args, **kwargs)