Skip to content
Snippets Groups Projects
Commit 2b525169 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix additional field handling

parent 45365f96
No related branches found
No related tags found
1 merge request!78Resolve "Rewrite registration wizard"
Pipeline #195981 canceled
...@@ -59,6 +59,8 @@ class SendEventRegistrationMutation(graphene.Mutation): ...@@ -59,6 +59,8 @@ class SendEventRegistrationMutation(graphene.Mutation):
event = Event.objects.get(pk=event) event = Event.objects.get(pk=event)
print(event_registration)
email = None email = None
if event_registration["email"] is not None: if event_registration["email"] is not None:
...@@ -157,7 +159,7 @@ class SendEventRegistrationMutation(graphene.Mutation): ...@@ -157,7 +159,7 @@ class SendEventRegistrationMutation(graphene.Mutation):
for field in event.additional_fields.all(): for field in event.additional_fields.all():
registration.extended_data[ registration.extended_data[
slugify(field.title).replace("-", "_") slugify(field.title).replace("-", "_")
] = event_registration["additional_fields"][field.id] ] = event_registration["additional_fields"][str(field.id)]
for field in event_registration["terms"]: for field in event_registration["terms"]:
pk = field pk = field
......
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