Fixed the transaction views so that it works without the return parameter in the accounting application.

This commit is contained in:
依瑪貓 2020-07-24 07:26:47 +08:00
parent 5a2a3a6c56
commit 75b5e53900
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ First written: 2020/7/23
</form>
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{{ request.GET.r }}">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
</a>

View File

@ -67,7 +67,7 @@ First written: 2020/7/23
</form>
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{{ request.GET.r }}">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
</a>

View File

@ -67,7 +67,7 @@ First written: 2020/7/23
</form>
<div class="btn-group btn-actions">
<a class="btn btn-primary" role="button" href="{{ request.GET.r }}">
<a class="btn btn-primary" role="button" href="{% if "r" in request.GET %}{{ request.GET.r }}{% else %}{% url "accounting:home" %}{% endif %}">
<i class="fas fa-chevron-circle-left"></i>
{% trans "Back" context "Navigation|" as text %}{{ text|force_escape }}
</a>