Commit 92c35a3d authored by Daniel W Bond's avatar Daniel W Bond
Browse files

account disconnect messge is now SUCCESS rather than INFO

parent 534da663
......@@ -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
return HttpResponseRedirect(self.get_success_url())
def get_success_url(self):
return reverse('update_student',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment