Fixed the is_disabled field in the user form to be optional in the Mia core application.
This commit is contained in:
parent
1f0685b026
commit
431955b90a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user