pep8 fixes
This commit is contained in:
parent
a91991bc5e
commit
029dc20be0
@ -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)
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user