1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update django is_safe_url calls to new API (#2546)

This commit is contained in:
Juho Juopperi
2018-11-05 15:52:00 +02:00
committed by Jeremy Stretch
parent 66ef5c726c
commit 319869c22e
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class LoginView(View):
# Determine where to direct user after successful login
redirect_to = request.POST.get('next', '')
if not is_safe_url(url=redirect_to, host=request.get_host()):
if not is_safe_url(url=redirect_to, allowed_hosts=request.get_host()):
redirect_to = reverse('home')
# Authenticate user