Add ordering by created date to QuestionTable and update import preview layout for better readability
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user