Replace links with django routes in templates
This commit is contained in:
parent
53eab204ac
commit
4ef99f4ef0
2 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue