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
c1f79fc7
Commit
c1f79fc7
authored
6 months ago
by
Tom Teichler
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-keyerror' into 'master'
Fix keyerror on registration See merge request
!63
parents
47d7761f
cc0ad940
No related branches found
No related tags found
1 merge request
!63
Fix keyerror on registration
Pipeline
#192476
canceled
6 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/views.py
+12
-3
12 additions, 3 deletions
aleksis/apps/paweljong/views.py
with
12 additions
and
3 deletions
aleksis/apps/paweljong/views.py
+
12
−
3
View file @
c1f79fc7
...
...
@@ -311,7 +311,10 @@ class AccountRegisterWizardView(SessionWizardView):
initial
=
self
.
initial_dict
.
get
(
step
,
{})
if
step
==
"
register
"
:
cleaned_data_email
=
self
.
get_cleaned_data_for_step
(
"
email
"
)
try
:
cleaned_data_email
=
self
.
get_cleaned_data_for_step
(
"
email
"
)
except
KeyError
:
# FIXME
cleaned_data_email
=
False
if
cleaned_data_email
:
domain
=
cleaned_data_email
[
"
domain
"
]
email
=
f
"
{
cleaned_data_email
[
'
local_part
'
]
}
@
{
domain
.
domain
}
"
...
...
@@ -338,7 +341,10 @@ class AccountRegisterWizardView(SessionWizardView):
def
done
(
self
,
form_list
,
**
kwargs
):
context
=
{}
cleaned_data_email
=
self
.
get_cleaned_data_for_step
(
"
email
"
)
try
:
cleaned_data_email
=
self
.
get_cleaned_data_for_step
(
"
email
"
)
except
KeyError
:
# FIXME
cleaned_data_email
=
False
cleaned_data_register
=
self
.
get_cleaned_data_for_step
(
"
register
"
)
# Create email address
...
...
@@ -474,7 +480,10 @@ class RegisterEventWizardView(SessionWizardView):
initial
=
self
.
initial_dict
.
get
(
step
,
{})
if
step
==
"
register
"
:
cleaned_data_email
=
self
.
get_cleaned_data_for_step
(
"
email
"
)
try
:
cleaned_data_email
=
self
.
get_cleaned_data_for_step
(
"
email
"
)
except
KeyError
:
cleaned_data_email
=
False
if
cleaned_data_email
:
domain
=
cleaned_data_email
[
"
domain
"
]
email
=
f
"
{
cleaned_data_email
[
'
local_part
'
]
}
@
{
domain
.
domain
}
"
...
...
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