Skip to content
Snippets Groups Projects
Commit 843abf64 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix typos

parent ab09b7be
No related branches found
No related tags found
1 merge request!1Reformat and cleanup
Pipeline #55779 failed
......@@ -374,14 +374,14 @@ class RegisterEventAdditional(ExtensibleForm):
fields = ["medical_information", "comment"]
def __init__(self, event, *args, **kwargs):
super(RegisterEventAdditional, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
for _field in event.linked_group.additional_fields.all():
field = getattr(fields, _field.field_type)(
for field in event.linked_group.additional_fields.all():
field_instance = getattr(fields, field.field_type)(
required=False,
)
self.fields[_field.title] = field
node = Fieldset(f"{_field.title}", f"{_field.title}")
self.fields[field.title] = field_instance
node = Fieldset(f"{field.title}", f"{field.title}")
self.add_node_to_layout(node)
......
......@@ -521,22 +521,22 @@ class RegisterEventWizardView(SessionWizardView):
# Create Person
person = Person.objects.create(
user=user,
email=cleaned_data_contact_detailts["email"],
short_name=cleaned_data_contact_detailts["short_name"],
first_name=cleaned_data_contact_detailts["first_name"],
additional_name=cleaned_data_contact_detailts["additional_name"],
last_name=cleaned_data_contact_detailts["last_name"],
street=cleaned_data_contact_detailts["street"],
housenumber=cleaned_data_contact_detailts["housenumber"],
postal_code=cleaned_data_contact_detailts["postal_code"],
place=cleaned_data_contact_detailts["place"],
mobile_number=cleaned_data_contact_detailts["mobile_number"],
phone_number=cleaned_data_contact_detailts["phone_number"],
date_of_birth=cleaned_data_contact_detailts["date_of_birth"],
place_of_birth=cleaned_data_contact_detailts["place_of_birth"],
sex=cleaned_data_contact_detailts["sex"],
photo=cleaned_data_contact_detailts["photo"],
description=cleaned_data_contact_detailts["description"],
email=cleaned_data_contact_details["email"],
short_name=cleaned_data_contact_details["short_name"],
first_name=cleaned_data_contact_details["first_name"],
additional_name=cleaned_data_contact_details["additional_name"],
last_name=cleaned_data_contact_details["last_name"],
street=cleaned_data_contact_details["street"],
housenumber=cleaned_data_contact_details["housenumber"],
postal_code=cleaned_data_contact_details["postal_code"],
place=cleaned_data_contact_details["place"],
mobile_number=cleaned_data_contact_details["mobile_number"],
phone_number=cleaned_data_contact_details["phone_number"],
date_of_birth=cleaned_data_contact_details["date_of_birth"],
place_of_birth=cleaned_data_contact_details["place_of_birth"],
sex=cleaned_data_contact_details["sex"],
photo=cleaned_data_contact_details["photo"],
description=cleaned_data_contact_details["description"],
)
if (
......@@ -582,6 +582,8 @@ class RegisterEventWizardView(SessionWizardView):
"last_name": cleaned_data_guardians["guardian_last_name"],
"mobile_number": cleaned_data_guardians["guardian_mobile_number"],
},
first_name=cleaned_data_guardians["guardian_first_name"],
last_name=cleaned_data_guardians["guardian_last_name"],
email=cleaned_data_guardians["guardian_email"],
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment