set up supervisor table
This commit is contained in:
+9
-1
@@ -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")
|
||||
Reference in New Issue
Block a user