Skip to content
Snippets Groups Projects
Verified Commit 52116e5b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add missing mixin to SuccessNextMixin

parent 405a5b7c
No related branches found
No related tags found
1 merge request!471Add SuccessNextMixin for automatic redirecting after finishing an action
Pipeline #5713 passed
......@@ -5,7 +5,7 @@ from typing import Any, Callable, List, Optional, Tuple, Union
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.views import LoginView
from django.contrib.auth.views import LoginView, SuccessURLAllowedHostsMixin
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.managers import CurrentSiteManager
from django.contrib.sites.models import Site
......@@ -416,7 +416,7 @@ class SuccessMessageMixin(ModelFormMixin):
return super().form_valid(form)
class SuccessNextMixin:
class SuccessNextMixin(SuccessURLAllowedHostsMixin):
redirect_field_name = "next"
def get_success_url(self) -> str:
......
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