From c6e0eae1aa1ec10159e1f959e4f55ab1912a3d55 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 31 Jul 2023 10:48:39 +0100 Subject: [PATCH] display question weighting in admin question list --- crowdsourcer/admin.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crowdsourcer/admin.py b/crowdsourcer/admin.py index 12bc5e1b..62136f35 100644 --- a/crowdsourcer/admin.py +++ b/crowdsourcer/admin.py @@ -34,7 +34,12 @@ class OptionAdmin(admin.ModelAdmin): "ordering", ] list_filter = ["question__section", "question__question_type"] - list_display = ("question", "description", "score", "ordering") + list_display = ( + "question", + "description", + "score", + "ordering", + ) @admin.register(PublicAuthority) @@ -52,6 +57,7 @@ class QuestionAdmin(admin.ModelAdmin): "number", "number_part", "description", + "weighting", ) list_filter = ["section", "how_marked", "questiongroup"] ordering = ("section", "number", "number_part")