Add user field to all list templates

This commit is contained in:
Mark Veidemanis 2023-02-15 18:44:19 +00:00
parent b4afa32a6e
commit eefd704800
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@
hx-get="{{ list_url }}"> hx-get="{{ list_url }}">
<thead> <thead>
<th>id</th> <th>id</th>
<th>user</th>
<th>name</th> <th>name</th>
<th>description</th> <th>description</th>
<th>account</th> <th>account</th>
@ -21,6 +22,7 @@
{% for item in object_list %} {% for item in object_list %}
<tr> <tr>
<td>{{ item.id }}</td> <td>{{ item.id }}</td>
<td>{{ item.user }}</td>
<td>{{ item.name }}</td> <td>{{ item.name }}</td>
<td>{{ item.description|truncatechars:80 }}</td> <td>{{ item.description|truncatechars:80 }}</td>
<td>{{ item.account }}</td> <td>{{ item.account }}</td>

View File

@ -12,6 +12,7 @@
hx-get="{{ list_url }}"> hx-get="{{ list_url }}">
<thead> <thead>
<th>id</th> <th>id</th>
<th>user</th>
<th>status</th> <th>status</th>
<th>account id</th> <th>account id</th>
<th>symbol</th> <th>symbol</th>
@ -25,6 +26,7 @@
{% for item in object_list %} {% for item in object_list %}
<tr> <tr>
<td>{{ item.id }}</td> <td>{{ item.id }}</td>
<td>{{ item.user }}</td>
<td>{{ item.status }}</td> <td>{{ item.status }}</td>
<td>{{ item.account.id }}</td> <td>{{ item.account.id }}</td>
<td>{{ item.symbol }}</td> <td>{{ item.symbol }}</td>