mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Still reducing the number of queries on the Forum
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{{ display_forum(forum, user, True) }}
|
||||
{% for f in forum.children.all() %}
|
||||
{% for f in forum.children.all().select_related("_last_message__author", "_last_message__topic") %}
|
||||
{{ display_forum(f, user) }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
@ -69,7 +69,7 @@
|
||||
{{ user_profile_link(topic.author) }}
|
||||
</p>
|
||||
<p class="ib w_medium" style="text-align: center;">
|
||||
{{ topic.messages.count() }}
|
||||
{{ topic._message_number }}
|
||||
</p>
|
||||
</div>
|
||||
<p class="ib w_medium" style="text-align: center;">
|
||||
|
Reference in New Issue
Block a user