Renamed the view accounts.show to accounts.detail in the accounting application.
This commit is contained in:
parent
9961a34e84
commit
340ba6f855
@ -141,7 +141,7 @@ First written: 2020/8/8
|
||||
<div class="col-sm-2">{{ _("Child Accounts:")|force_escape }}</div>
|
||||
<div class="col-sm-10">
|
||||
{% for child in account.child_set.all %}
|
||||
<a class="btn btn-primary" type="role" href="{% url_with_return "accounting:accounts.show" child %}">
|
||||
<a class="btn btn-primary" type="role" href="{% url_with_return "accounting:accounts.detail" child %}">
|
||||
{{ child }}
|
||||
</a>
|
||||
{% empty %}
|
||||
|
@ -67,7 +67,7 @@ First written: 2020/8/7
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="actions">
|
||||
<a href="{% url "accounting:accounts.show" account %}" class="btn btn-info" role="button">
|
||||
<a href="{% url "accounting:accounts.detail" account %}" class="btn btn-info" role="button">
|
||||
<i class="fas fa-eye"></i>
|
||||
<span class="d-none d-sm-inline">{{ _("View")|force_escape }}</span>
|
||||
</a>
|
||||
|
@ -101,7 +101,7 @@ urlpatterns = [
|
||||
path("accounts/options",
|
||||
views.account_options, name="accounts.options"),
|
||||
path("accounts/<account:account>",
|
||||
views.AccountView.as_view(), name="accounts.show"),
|
||||
views.AccountView.as_view(), name="accounts.detail"),
|
||||
# TODO: To be done
|
||||
path("accounts/<account:account>/edit",
|
||||
mia_core_views.todo, name="accounts.edit"),
|
||||
|
Loading…
Reference in New Issue
Block a user