sdelements/django-security

LoginRequiredMiddleware breaks LOGIN_URL is a named URL

vkurup opened this issue · 0 comments

Django says LOGIN_URL can be a URL or a named URL pattern, but LoginRequiredMiddleware assumes that it is a URL so named URL patterns don't work. I think this could be fixed by running the URL through resolve_url before redirecting.