Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
b87b4818
Verified
Commit
b87b4818
authored
Jan 06, 2022
by
Baptiste Beauplat
Browse files
Assign a default None value to email in EmailChangeConfirmView
parent
e5a384dd
Changes
1
Show whitespace changes
Inline
Side-by-side
debexpo/accounts/views.py
View file @
b87b4818
...
@@ -278,6 +278,7 @@ class EmailChangeConfirmView(PasswordResetConfirmView):
...
@@ -278,6 +278,7 @@ class EmailChangeConfirmView(PasswordResetConfirmView):
assert
'uidb64'
in
kwargs
and
'token'
in
kwargs
and
'email'
in
kwargs
assert
'uidb64'
in
kwargs
and
'token'
in
kwargs
and
'email'
in
kwargs
self
.
validlink
=
False
self
.
validlink
=
False
self
.
email
=
None
self
.
user
=
self
.
get_user
(
kwargs
[
'uidb64'
])
self
.
user
=
self
.
get_user
(
kwargs
[
'uidb64'
])
if
self
.
user
is
not
None
:
if
self
.
user
is
not
None
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment