mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-02-07 13:59:39 +01:00
Backport patch that will hopefully address #781
This commit is contained in:
parent
542138c294
commit
2d129d0e31
@ -11,7 +11,7 @@ default_login_view = auth_views.LoginView.as_view(
|
|||||||
def login(request):
|
def login(request):
|
||||||
login_url = settings.LOGIN_URL
|
login_url = settings.LOGIN_URL
|
||||||
# Prevent redirect loop by checking that LOGIN_URL is not this view's name
|
# Prevent redirect loop by checking that LOGIN_URL is not this view's name
|
||||||
if login_url and login_url != request.resolver_match.view_name:
|
if login_url and (login_url != resolve_url(request.resolver_match.view_name) and (login_url != request.resolver_match.view_name)):
|
||||||
if 'next' in request.GET:
|
if 'next' in request.GET:
|
||||||
return_to = request.GET['next']
|
return_to = request.GET['next']
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user