set up supervisor table

This commit is contained in:
Ross
2024-09-02 17:16:39 +01:00
parent 80412dcbe0
commit 46165a47ec
4 changed files with 56 additions and 4 deletions
+9 -1
View File
@@ -7,7 +7,7 @@ from easy_thumbnails.files import get_thumbnailer
from easy_thumbnails.exceptions import InvalidImageFormatError
from generic.models import CidUser, Examination, findMiddle
from generic.models import CidUser, Examination, Supervisor, findMiddle
from django.contrib.auth.models import User
@@ -305,3 +305,11 @@ class ExaminationTable(tables.Table):
template_name = "django_tables2/bootstrap4.html"
#fields = ("primary", "subspecialty")
sequence = ("examination",)
class SupervisorTable(tables.Table):
class Meta:
model = Supervisor
template_name = "django_tables2/bootstrap4.html"
sequence = ("name", "email")