Add missing replacements of reverse to resolve_url.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import urlparse
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib import messages
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.shortcuts import get_object_or_404, resolve_url
|
||||
from django.urls import reverse
|
||||
from django.utils.http import urlencode
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
@@ -71,7 +71,7 @@ class DocumentPageNavigationBase(RedirectView):
|
||||
def get_redirect_url(self, *args, **kwargs):
|
||||
parse_result = urlparse.urlparse(
|
||||
self.request.META.get(
|
||||
'HTTP_REFERER', reverse(
|
||||
'HTTP_REFERER', resolve_url(
|
||||
settings.LOGIN_REDIRECT_URL
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user