Deploy Django5 stuff on production #93

Merged
heinzel merged 11 commits from stage into production 2025-04-11 11:23:24 +02:00
Showing only changes of commit a143e8e239 - Show all commits

View File

@@ -48,9 +48,10 @@ class LoginView(auth_views.LoginView):
class LogoutView(auth_views.LogoutView):
def get_next_page(self):
url = super().get_next_page()
if not url and app_config.settings.logout_redirect_url:
@property
def next_page(self):
url = None
if app_config.settings.logout_redirect_url:
url = resolve_url(app_config.settings.logout_redirect_url)
return url