Skip to content
Snippets Groups Projects
Commit 3d427781 authored by Dan Braghis's avatar Dan Braghis
Browse files

Tweak required_login url

parent cdaaa422
No related branches found
No related tags found
No related merge requests found
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.shortcuts import render from django.shortcuts import render
from django.urls import reverse_lazy
from wagtail.wagtailadmin.views.account import password_management_enabled from wagtail.wagtailadmin.views.account import password_management_enabled
@login_required(login_url='/user/login') @login_required(login_url=reverse_lazy('users:login'))
def account(request): def account(request):
"Account page placeholder view" "Account page placeholder view"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment