mirror of
https://github.com/ae-utbm/sith.git
synced 2024-10-31 19:38:04 +00:00
pedagogy: display most recent comment first
This commit is contained in:
parent
782ee35779
commit
c05168a2b5
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
{% if object.comments.exists() %}
|
{% if object.comments.exists() %}
|
||||||
<h2>{% trans %}Comments{% endtrans %}</h2>
|
<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 id="{{ comment.id }}" class="comment">
|
||||||
<div class="grade_block">
|
<div class="grade_block">
|
||||||
<div class="dif_grade">
|
<div class="dif_grade">
|
||||||
|
Loading…
Reference in New Issue
Block a user