Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Paweljong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Projekt Hack-n-Fun
AlekSIS-App-Paweljong
Commits
2b525169
Commit
2b525169
authored
2 months ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Fix additional field handling
parent
45365f96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!78
Resolve "Rewrite registration wizard"
Pipeline
#195981
canceled
2 months ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/paweljong/schema/event_registration.py
+3
-1
3 additions, 1 deletion
aleksis/apps/paweljong/schema/event_registration.py
with
3 additions
and
1 deletion
aleksis/apps/paweljong/schema/event_registration.py
+
3
−
1
View file @
2b525169
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment