admin: fix ?next for Flow list

This commit is contained in:
Jens Langhammer 2021-02-14 18:26:10 +01:00
parent be292729a5
commit 35e8a0c374
2 changed files with 6 additions and 3 deletions

View File

@ -86,8 +86,12 @@
</ak-spinner-button>
<div slot="modal"></div>
</ak-modal-button>
<a class="pf-c-button pf-m-secondary ak-root-link" href="{% url 'authentik_admin:flow-execute' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Execute' %}</a>
<a class="pf-c-button pf-m-secondary ak-root-link" href="{% url 'authentik_admin:flow-export' pk=flow.pk %}?next={{ request.get_full_path }}">{% trans 'Export' %}</a>
<a class="pf-c-button pf-m-secondary ak-root-link" href="{% url 'authentik_admin:flow-execute' pk=flow.pk %}?next=/#{{ request.get_full_path }}">
{% trans 'Execute' %}
</a>
<a class="pf-c-button pf-m-secondary ak-root-link" href="{% url 'authentik_admin:flow-export' pk=flow.pk %}">
{% trans 'Export' %}
</a>
</td>
</tr>
{% endfor %}

View File

@ -3,7 +3,6 @@ from hashlib import sha256
from types import GeneratorType
import xmlsec
from django.conf import settings
from django.http import HttpRequest
from lxml import etree # nosec
from lxml.etree import Element, SubElement # nosec