pep8 fixes

This commit is contained in:
Thomas Waldmann 2013-11-02 10:02:51 +01:00
parent a91991bc5e
commit 029dc20be0
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ class OverviewView(CreateView):
self.object.created_by = self.request.user self.object.created_by = self.request.user
self.object.save() self.object.save()
success, level, msg = True, messages.SUCCESS, 'Host added.' 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') url = self.get_success_url() if success else reverse('overview')
return HttpResponseRedirect(url) return HttpResponseRedirect(url)

View File

@ -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. # 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/' 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 # Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in).
# SOCIAL_AUTH_LOGIN_REDIRECT_URL # Used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL.
SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/account/profile' SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/account/profile'
# The user will be redirected to this URL when a social account is disconnected # The user will be redirected to this URL when a social account is disconnected