Replace links with django routes in templates

This commit is contained in:
Edgar P. Burkhart 2022-05-19 19:04:25 +02:00
parent 53eab204ac
commit 4ef99f4ef0
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{% if transactions %}
<ul>
{% for trans in transactions %}
<li><a href="transaction/{{ trans.id }}">{{ trans }}</a></li>
<li><a href="{% url 'transaction' trans.id %}">{{ trans }}</a></li>
{% endfor %}
</ul>
{% endif %}

View file

@ -1,6 +1,6 @@
<h1>{{ transaction }}</h1>
<ul>
{% for inv in invoices %}
<li><a href="../invoice/{{ inv.id }}">{{ inv.name }}</a></li>
<li><a href="{% url 'invoice' inv.id %}">{{ inv.name }}</a></li>
{% endfor %}
</ul>