aircox/views/episode: redirect to edit view when adding an episode

This commit is contained in:
2024-11-07 10:12:11 +01:00
parent 129360f89d
commit 529ed25d7f
2 changed files with 14 additions and 4 deletions

View File

@ -8,7 +8,7 @@
{% block page-form-actions %}
<a class="button secondary withmargin" href="{% url 'episode-list' parent_slug=object.slug %}">{% trans "Episodes" %}</a>
<a class="button secondary withmargin" href="{% url 'program-add-episode' object.pk %}">{% trans "New episode" %}</a>
<a class="button secondary withmargin" href="{% url 'program-add-episode' object.pk %}" target="_self">{% trans "New episode" %}</a>
{% if object and object.pk and request.user.is_superuser %}
<button type="button"
class="button secondary withmargin"