pedagogy: display most recent comment first

This commit is contained in:
Antoine Bartuccio 2019-07-06 02:33:05 +02:00
parent 782ee35779
commit c05168a2b5
Signed by: klmp200
GPG Key ID: E7245548C53F904B
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
{% if object.comments.exists() %}
<h2>{% trans %}Comments{% endtrans %}</h2>
{% for comment in object.comments.all() %}
{% for comment in object.comments.order_by("-publish_date").all() %}
<div id="{{ comment.id }}" class="comment">
<div class="grade_block">
<div class="dif_grade">