diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index 00802f1..0776c27 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -115,7 +115,7 @@ class OverviewView(CreateView): self.object.created_by = self.request.user self.object.save() success, level, msg = True, messages.SUCCESS, 'Host added.' - messages.add_message(self.request, level, msg) + messages.add_message(self.request, level, msg) url = self.get_success_url() if success else reverse('overview') return HttpResponseRedirect(url) diff --git a/nsupdate/settings.py b/nsupdate/settings.py index 497b262..90211d3 100644 --- a/nsupdate/settings.py +++ b/nsupdate/settings.py @@ -264,8 +264,8 @@ SOCIAL_AUTH_LOGIN_URL = '/accounts/login/' # Used to redirect new registered users, will be used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL if defined. SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/account/profile/' -# Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in). Used in place of -# SOCIAL_AUTH_LOGIN_REDIRECT_URL +# Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in). +# Used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL. SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/account/profile' # The user will be redirected to this URL when a social account is disconnected