diff --git a/src/members/forms.py b/src/members/forms.py index c6419f0d..36b437dc 100644 --- a/src/members/forms.py +++ b/src/members/forms.py @@ -351,10 +351,9 @@ class CustomUserEditForm(UserEditForm): help_text=_('Person number using the YYYYMMDD-XXXX format.'), required=False ) - phone_number = forms.CharField( - required=True, - label=_('Phone number'), - ) + + phone_number = PhoneNumberField() + email = forms.EmailField( required=True, label=_('Email'), @@ -419,10 +418,7 @@ class CustomUserCreationForm(UserCreationForm): required=True, label=_('Email'), ) - phone_number = forms.CharField( - required=True, - label=_('Phone number'), - ) + phone_number = PhoneNumberField() registration_year = forms.CharField( required=False, label=_('Registration year'),