first/last_name in user-profile (and maybe many others) are required fields, but should not
at "/user-profile" slider "account" the time-zone can't be changed without setting first_name and last_name to a non-empty value. this is at least annoying.
looking at "django_mailman3/forms.py" the intention of code seems to be clear: only "username" is required (as it should be).
unfortunately the default-setting of class "CharField" (upper class "Field") in "django/forms/fields.py" for attribute "required" is "True".
so any Field, which is not required should be explicitly initialized with `required=False` to get the desired behaviour.
for "django_mailman3/forms.py" the diff is:
```
--- django_mailman3/forms.py-dist 2021-01-15 19:16:42.000000000 +0100
+++ django_mailman3/forms.py 2021-11-18 20:12:48.025847560 +0100
@@ -30,8 +30,8 @@ from django_mailman3.models import TIMEZ
class UserProfileForm(forms.Form):
username = forms.CharField(required=True, label=_('Username'))
- first_name = forms.CharField(label=_('First name'))
- last_name = forms.CharField(label=_('Last name'))
+ first_name = forms.CharField(label=_('First name'), required=False)
+ last_name = forms.CharField(label=_('Last name'), required=False)
timezone = forms.ChoiceField(
label=_('Time zone'), choices=TIMEZONES)
```
issue