fix: reduce database queries when building menues (#6928)

This commit is contained in:
Robert Sparks 2024-01-17 13:19:20 -06:00 committed by GitHub
parent 1bcee8b506
commit 06f496ca6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,7 @@
<li> <li>
<a class="dropdown-item {% if flavor != 'top' %}text-wrap{% endif %}" <a class="dropdown-item {% if flavor != 'top' %}text-wrap{% endif %}"
href="{% url "ietf.group.views.group_documents" g.acronym %}"> href="{% url "ietf.group.views.group_documents" g.acronym %}">
{{ g.acronym }} {{ g.type.slug }} docs {{ g.acronym }} {{ g.type_id }} docs
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
@ -309,7 +309,7 @@
<li> <li>
<a class="dropdown-item {% if flavor != 'top' %}text-wrap link-primary{% endif %}" <a class="dropdown-item {% if flavor != 'top' %}text-wrap link-primary{% endif %}"
href="{% url "ietf.group.views.meetings" g.acronym %}"> href="{% url "ietf.group.views.meetings" g.acronym %}">
{{ g.acronym }} {{ g.type.slug }} meetings {{ g.acronym }} {{ g.type_id }} meetings
</a> </a>
</li> </li>
{% endfor %} {% endfor %}