Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Respect My Net
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
piks3l
Respect My Net
Commits
e201a321
Commit
e201a321
authored
Sep 24, 2011
by
stef
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 404 on already confirmed
parent
e68a234b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bt/views.py
bt/views.py
+6
-4
No files found.
bt/views.py
View file @
e201a321
...
...
@@ -97,10 +97,12 @@ def confirm(request, id, name=None):
return
HttpResponse
(
unicode
(
_
(
"Thank you, this has been already confirmed"
)))
c
.
save
()
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
()
try
:
c
=
get_object_or_404
(
Confirmation
,
key
=
id
)
except
:
return
HttpResponse
(
unicode
(
_
(
"Thank you, this has been already confirmed"
)))
c
.
key
=
''
c
.
save
()
messages
.
add_message
(
request
,
messages
.
INFO
,
unicode
(
_
(
'Thank you for verifying your confirmation'
)))
return
HttpResponseRedirect
(
'/'
)
# Redirect after POST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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