update formats

This commit is contained in:
Ross
2024-12-09 13:21:25 +00:00
parent ba29c9c881
commit a9687345c6
2 changed files with 6 additions and 1 deletions
@@ -6,6 +6,11 @@
<input type="submit" value="Update">
</form>
{% if request.user.is_superuser %}
<a href="{% url 'admin:oef_formats_change' object.id %}">Admin</a>
{% endif %}
<h2>Entries</h2>
<ul>
{% for entry in object.get_entries %}
+1 -1
View File
@@ -11,7 +11,7 @@
{% for format in formats %}
<li>
<a href="{% url 'oef:format_update' format.id %}">{{ format.name }}</a>
<a href="{% url 'oef:formats_apply' format.id %}">apply</a>
<a href="{% url 'oef:formats_apply' format.id %}">apply</a> [{{ format.get_entries.count }}]
</li>
{% endfor %}