Fix deprecation warnings

This commit is contained in:
2022-04-18 17:13:41 +02:00
parent fad92c5930
commit 5cf1f63674
9 changed files with 39 additions and 51 deletions

View File

@ -5,27 +5,27 @@
<tbody>
<tr>
<th scope="row">User ID</th>
<td>{{ user_id }}</td>
<td>{{ u.uid }}</td>
</tr>
<tr>
<th scope="row">First name</th>
<td>{{ first_name }}</td>
<td>{{ u.first_name }}</td>
</tr>
<tr>
<th scope="row">Last name</th>
<td>{{ last_name }}</td>
<td>{{ u.last_name }}</td>
</tr>
<tr>
<th scope="row">Username</th>
<td>{{ username }}</td>
<td>{{ u.username }}</td>
</tr>
<tr>
<th scope="row">Email</th>
<td>{{ email }}</td>
<td>{{ u.email }}</td>
</tr>
<tr>
<th scope="row">Account type</th>
<td>{% if is_admin %}Admin{% else %}Regular user{% endif %}</td>
<td>{% if u.admin %}Admin{% else %}Regular user{% endif %}</td>
</tr>
</tbody>
</table>