Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
f647cefb
Commit
f647cefb
authored
Sep 21, 2011
by
stef
Browse files
[fix] ajax lazy xl8 bug
parent
a5c6ebf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/views.py
View file @
f647cefb
...
...
@@ -94,14 +94,14 @@ def confirm(request, id, name=None):
try
:
c
=
Confirmation
(
key
=
actid
,
email
=
name
,
violation
=
Violation
.
objects
.
get
(
pk
=
id
))
except
:
return
HttpResponse
(
_
(
"Thank you, this has been already confirmed"
))
return
HttpResponse
(
unicode
(
_
(
"Thank you, this has been already confirmed"
))
)
c
.
save
()
return
HttpResponse
(
_
(
'<div class="confirm_thanks">Thank you for your confirmation
</div>
'
))
return
HttpResponse
(
'<div class="confirm_thanks">
%s</div>'
%
unicode
(
_
(
'
Thank you for your confirmation'
))
)
c
=
Confirmation
.
objects
.
get
(
key
=
id
)
if
c
:
c
.
key
=
''
c
.
save
()
messages
.
add_message
(
request
,
messages
.
INFO
,
_
(
'Thank you for verifying your confirmation'
))
messages
.
add_message
(
request
,
messages
.
INFO
,
unicode
(
_
(
'Thank you for verifying your confirmation'
))
)
return
HttpResponseRedirect
(
'/'
)
# Redirect after POST
def
sendverifymail
(
service
,
to
):
...
...
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