From a0b38f541a3b5be250f213b45ac986c92f0e1967 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 4 Sep 2023 09:36:31 +0100 Subject: [PATCH] add user to sba / physics answer tables --- physics/tables.py | 1 + sbas/filters.py | 1 + sbas/tables.py | 1 + 3 files changed, 3 insertions(+) diff --git a/physics/tables.py b/physics/tables.py index 969cb0dc..4e05d6c7 100644 --- a/physics/tables.py +++ b/physics/tables.py @@ -74,6 +74,7 @@ class UserAnswerTable(tables.Table): template_name = "django_tables2/bootstrap4.html" fields = ( "cid", + "user", "question", "answer", # "answer_compare", diff --git a/sbas/filters.py b/sbas/filters.py index 71492599..1c5e5f93 100644 --- a/sbas/filters.py +++ b/sbas/filters.py @@ -48,6 +48,7 @@ class UserAnswerFilter(django_filters.FilterSet): model= UserAnswer fields = ( "cid", + "user", #"question", "answer", #"answer_compare", diff --git a/sbas/tables.py b/sbas/tables.py index bb7b374b..2d481477 100644 --- a/sbas/tables.py +++ b/sbas/tables.py @@ -68,6 +68,7 @@ class UserAnswerTable(tables.Table): template_name = "django_tables2/bootstrap4.html" fields = ( "cid", + "user", "question", "answer", #"answer_compare",