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 %}
|
{% if transactions %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for trans in transactions %}
|
{% for trans in transactions %}
|
||||||
<li><a href="transaction/{{ trans.id }}">{{ trans }}</a></li>
|
<li><a href="{% url 'transaction' trans.id %}">{{ trans }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>{{ transaction }}</h1>
|
<h1>{{ transaction }}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{% for inv in invoices %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue