12 lines
331 B
Python
12 lines
331 B
Python
|
import django_tables2 as tables
|
||
|
from .models import *
|
||
|
|
||
|
class PatientTable(tables.Table):
|
||
|
class Meta:
|
||
|
model = Patient
|
||
|
# template_name = "django_tables2/bootstrap.html"
|
||
|
template_name = "django_tables2/bootstrap4.html"
|
||
|
# fields = ("name", )
|
||
|
|
||
|
|
||
|
# attrs = {"class": "table"}
|