debug ent report

This commit is contained in:
2023-03-28 15:37:25 +01:00
parent 2091eb8e8b
commit 6ca5d5bfa8
6 changed files with 91 additions and 40 deletions

36
templates/cave_debug.html Normal file
View File

@@ -0,0 +1,36 @@
{% extends "base.html" %}
{% block title %}DEBUG page
<!-- cave_debug.html - this text visible because this template has been included -->
{% endblock %}
{% block content %}
<h2 id="cmult">Entrances</h2>
<table>
<tr><th>ent</th>
<th>cached_primary_slug</th>
<th>N slugs</th>
<th>slugs</th>
</tr>
{% for ent in ents %}
<tr>
<td>
{{ent}}
</td>
<td>
{{ent.cached_primary_slug}}
</td>
<td>
{{ent.entranceslug_set.all|length }}
</td>
<td>
{% for s in ent.entranceslug_set.all %}
{{s.slug}},
{% endfor %}
</td>
{% endfor %}
</table>
{% endblock %}