diff --git a/bookwyrm/models/report.py b/bookwyrm/models/report.py index 8893f42fc..a1e17eb2f 100644 --- a/bookwyrm/models/report.py +++ b/bookwyrm/models/report.py @@ -30,3 +30,8 @@ class ReportComment(BookWyrmModel): user = models.ForeignKey("User", on_delete=models.PROTECT) note = models.TextField() report = models.ForeignKey(Report, on_delete=models.PROTECT) + + class Meta: + """ sort comments """ + + ordering = ("-created_date",) diff --git a/bookwyrm/templates/moderation/report.html b/bookwyrm/templates/moderation/report.html index ae014d68c..d27695446 100644 --- a/bookwyrm/templates/moderation/report.html +++ b/bookwyrm/templates/moderation/report.html @@ -1,5 +1,6 @@ {% extends 'settings/admin_layout.html' %} {% load i18n %} +{% load humanize %} {% block title %}{% blocktrans with report_id=report.id %}Report #{{ report_id }}{% endblocktrans %}{% endblock %} {% block header %}{% blocktrans with report_id=report.id %}Report #{{ report_id }}{% endblocktrans %}{% endblock %} @@ -29,17 +30,29 @@ {% endif %} + +
{{ comment.note }}
+