diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index 21226aa6..a9b6d3f8 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -846,4 +846,10 @@ summary h5 { button a, button a:link, button a:visited, button a:hover { text-decoration: none; color: inherit; +} + +details.filter { + border: 1px solid gray; + padding: 10px; + margin: 20px; } \ No newline at end of file diff --git a/anatomy/tables.py b/anatomy/tables.py index de2922a7..f32a5839 100644 --- a/anatomy/tables.py +++ b/anatomy/tables.py @@ -55,6 +55,15 @@ class AnatomyQuestionTable(tables.Table): "author", ) sequence = ("view", "image", "exams") + + def __init__(self, data=None, *args, **kwargs): + super().__init__( + data.prefetch_related( + "answers", "question_type", "body_part", "modality", "region", "examination", "exams", "author" + ), + *args, + **kwargs, + ) class AnatomyUserAnswerTable(tables.Table): select = tables.CheckBoxColumn(accessor=("pk")) delete = tables.LinkColumn( diff --git a/anatomy/templates/anatomy/anatomy_question_view.html b/anatomy/templates/anatomy/anatomy_question_view.html deleted file mode 100644 index 8bcb6824..00000000 --- a/anatomy/templates/anatomy/anatomy_question_view.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'anatomy/base.html' %} - -{% load render_table from django_tables2 %} -{% block css %} -{% endblock %} - -{% block content %} - -
Active exams will be available to take at the below url: - Available exams -
- - -Error creating user: { user['email'] }
{error}
Error creating user profile: { user['email'] }
{error}
Error creating users.
{error}
Active exams will be available to take at the below url: - Available exams -
- - -+ Prepare a spreadsheet with the following format. + +
| First name | Last name | Grade | Supervisor | Supervisor email | |
|---|---|---|---|---|---|
| name 1 | last name 1 | email 1 | grade 1 | supervisor 1 | Supervisor email 1 |