templates: add target to preview links in order to be able to follow them in the dashboad view

This commit is contained in:
Chris Tactic 2024-10-21 07:37:30 +02:00
parent efac8997f2
commit c5ecca2d36

View File

@ -56,7 +56,7 @@ Styling related context:
<div class="actions"> <div class="actions">
{% block actions %} {% block actions %}
{% if admin and object.edit_url_name %} {% if admin and object.edit_url_name %}
<a href="{% url object.edit_url_name pk=object.pk %}">{% translate "Edit" %}</a> <a href="{% url object.edit_url_name pk=object.pk %}" target="_self">{% translate "Edit" %}</a>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
</div> </div>