From 7d9dfd8372a13b1727797fd0bccdcd6fe7f796ea Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 4 Oct 2021 22:22:54 +0100 Subject: [PATCH] . --- anatomy/templates/anatomy/view.html | 28 ++++++++++++++++++++++++++++ anatomy/views.py | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100755 anatomy/templates/anatomy/view.html diff --git a/anatomy/templates/anatomy/view.html b/anatomy/templates/anatomy/view.html new file mode 100755 index 00000000..261aee73 --- /dev/null +++ b/anatomy/templates/anatomy/view.html @@ -0,0 +1,28 @@ +{% extends 'anatomy/base.html' %} + +{% load render_table from django_tables2 %} +{% block css %} +{% endblock %} + +{% block content %} + +
+

Filter Anatomy Questions

+
+ {{ filter.form }} + +
+
+{% render_table table %} + + +
+ + +{% endblock %} \ No newline at end of file diff --git a/anatomy/views.py b/anatomy/views.py index c2d17058..94952f4e 100644 --- a/anatomy/views.py +++ b/anatomy/views.py @@ -942,7 +942,7 @@ def get_structure_id(request): class AnatomyQuestionView(LoginRequiredMixin, SingleTableMixin, FilterView): model = AnatomyQuestion table_class = AnatomyQuestionTable - template_name = "anatomy/question_list.html" + template_name = "anatomy/views.html" filterset_class = AnatomyQuestionFilter