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
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
SRCT
roomlist
Commits
92c35a3d
Commit
92c35a3d
authored
May 23, 2017
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
account disconnect messge is now SUCCESS rather than INFO
parent
534da663
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
roomlist/accounts/adapter.py
roomlist/accounts/adapter.py
+8
-1
No files found.
roomlist/accounts/adapter.py
View file @
92c35a3d
...
...
@@ -5,6 +5,7 @@ from django.core.urlresolvers import reverse
from
django.contrib
import
messages
from
django.http
import
HttpResponseRedirect
# third party imports
from
allauth.account.adapter
import
get_adapter
as
get_account_adapter
from
allauth.socialaccount.adapter
import
DefaultSocialAccountAdapter
from
allauth.socialaccount.views
import
ConnectionsView
from
allauth.exceptions
import
ImmediateHttpResponse
...
...
@@ -90,7 +91,13 @@ class RemoveSocialConfirmationView(LoginRequiredMixin, ConnectionsView):
return
super
(
RemoveSocialConfirmationView
,
self
).
get
(
request
,
*
args
,
**
kwargs
)
def
form_valid
(
self
,
form
):
return
super
(
RemoveSocialConfirmationView
,
self
).
form_valid
(
form
)
# copied directly, except using SUCCESS rather than INFO
get_account_adapter
().
add_message
(
self
.
request
,
messages
.
SUCCESS
,
'socialaccount/messages/'
'account_disconnected.txt'
)
form
.
save
()
return
HttpResponseRedirect
(
self
.
get_success_url
())
def
get_success_url
(
self
):
return
reverse
(
'update_student'
,
...
...
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