Skip to content
Snippets Groups Projects
Verified Commit 6932e4d5 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use RedirectURLMixin replacing SuccessURLAllowedHostsMixin

This also bumps Django to 4.1 because this undocumented API was
changed in a minor release…
parent 06e12e6d
No related branches found
No related tags found
1 merge request!808Resolve "Prepare for Django 4.0"
......@@ -6,7 +6,7 @@ from typing import Any, Callable, List, Optional, Union
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.views import LoginView, SuccessURLAllowedHostsMixin
from django.contrib.auth.views import LoginView, RedirectURLMixin
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.managers import CurrentSiteManager
from django.contrib.sites.models import Site
......@@ -465,7 +465,7 @@ class SuccessMessageMixin(ModelFormMixin):
return super().form_valid(form)
class SuccessNextMixin(SuccessURLAllowedHostsMixin):
class SuccessNextMixin(RedirectURLMixin):
redirect_field_name = "next"
def get_success_url(self) -> str:
......
......@@ -56,7 +56,7 @@ secondary = true
[tool.poetry.dependencies]
python = "^3.9"
Django = "^4.0"
Django = "^4.1"
django-any-js = "^1.1"
django-menu-generator-ng = "^1.2.3"
django-tables2 = "^2.1"
......
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