code: correcting code to display item list for a registered model

This commit is contained in:
2024-01-05 17:56:54 +01:00
parent 94845ecb0e
commit b5f9be7e5a
6 changed files with 56 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
{% extends "admin/base.html" %}
{% block content %}
{% if item_list %}
<ul>
{% for item in item_list %}
<li>{{ item.name }}</li>
{% endfor %}
</ul>
{% else %}
No Items found.
{% endif %}
{% endblock content %}

View File

@@ -1,5 +0,0 @@
{% if item_list %}
{% for item in item_list %}
poop: {{ item}}
{% endfor %}
{% endif %}