Add ordering by created date to QuestionTable and update import preview layout for better readability

This commit is contained in:
Ross
2025-10-20 13:53:08 +01:00
parent 5d09c34f6d
commit bc21dd6ebd
2 changed files with 27 additions and 25 deletions
+1
View File
@@ -46,6 +46,7 @@ class QuestionTable(tables.Table):
) )
sequence = ("view", "stem", "answers")#, "exams") sequence = ("view", "stem", "answers")#, "exams")
attrs = {"class": "table row-selector"} attrs = {"class": "table row-selector"}
order_by = "-created_date"
def __init__(self, data=None, *args, **kwargs): def __init__(self, data=None, *args, **kwargs):
super().__init__( super().__init__(
@@ -32,6 +32,7 @@
{% endif %} {% endif %}
</ul> </ul>
<p><strong>Best Answer:</strong> {{ item.payload.best_answer|default:'' }}
</p> </p>
<p><strong>Feedback:</strong> {{ item.payload.feedback|default:''|safe }}</p> <p><strong>Feedback:</strong> {{ item.payload.feedback|default:''|safe }}</p>
<p><strong>Sources:</strong> <p><strong>Sources:</strong>