Fixed the action URL for existing transactions in the transfer transaction form in the accounting application.
This commit is contained in:
parent
22f3cad8b1
commit
e31119a19d
@ -39,7 +39,7 @@ First written: 2020/7/23
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<form id="txn-form" action="{% if transaction.pk %}{% url_keep_return "accounting:transactions.update" "transfer" item %}{% else %}{% url_keep_return "accounting:transactions.store" "transfer" %}{% endif %}" method="post">
|
||||
<form id="txn-form" action="{% if item.pk %}{% url_keep_return "accounting:transactions.update" "transfer" item %}{% else %}{% url_keep_return "accounting:transactions.store" "transfer" %}{% endif %}" method="post">
|
||||
{% csrf_token %}
|
||||
{# TODO: To be done #}
|
||||
<input id="l10n-messages" type="hidden" value="{{ l10n_messages }}" />
|
||||
|
Loading…
Reference in New Issue
Block a user