Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0b5dda56
authored
Jun 09, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: don't redirect un/subscribing anonymous
parent
6f46efda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
circle/dashboard/views.py
+6
-0
No files found.
circle/dashboard/views.py
View file @
0b5dda56
...
@@ -2611,6 +2611,12 @@ class UnsubscribeFormView(SuccessMessageMixin, UpdateView):
...
@@ -2611,6 +2611,12 @@ class UnsubscribeFormView(SuccessMessageMixin, UpdateView):
template_name
=
"dashboard/unsubscribe.html"
template_name
=
"dashboard/unsubscribe.html"
success_message
=
_
(
"Successfully modified subscription."
)
success_message
=
_
(
"Successfully modified subscription."
)
def
get_success_url
(
self
):
if
self
.
request
.
user
.
is_authenticated
():
return
super
(
UnsubscribeFormView
,
self
)
.
get_success_url
()
else
:
return
self
.
request
.
path
@classmethod
@classmethod
def
get_salt
(
cls
):
def
get_salt
(
cls
):
return
unicode
(
cls
)
return
unicode
(
cls
)
...
...
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