Fix phone number not being saved in customer registration form

This commit is contained in:
Raphael Michel
2022-03-27 15:09:39 +02:00
parent 551bd3e284
commit e7996c693a

View File

@@ -260,6 +260,7 @@ class RegistrationForm(forms.Form):
customer = self.request.organizer.customers.create( customer = self.request.organizer.customers.create(
email=self.cleaned_data['email'], email=self.cleaned_data['email'],
name_parts=self.cleaned_data['name_parts'], name_parts=self.cleaned_data['name_parts'],
phone=self.cleaned_data.get('phone'),
is_active=True, is_active=True,
is_verified=False, is_verified=False,
locale=get_language_without_region(), locale=get_language_without_region(),