1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-11-26 14:07:08 +00:00
plateforme-tfjm2/apps/member/tables.py
2020-05-05 00:56:34 +02:00

24 lines
533 B
Python

import django_tables2 as tables
from django_tables2 import A
from member.models import TFJMUser
class UserTable(tables.Table):
last_name = tables.LinkColumn(
"member:information",
args=[A("pk")],
)
first_name = tables.LinkColumn(
"member:information",
args=[A("pk")],
)
class Meta:
model = TFJMUser
fields = ("last_name", "first_name", "role", "date_joined", )
attrs = {
'class': 'table table-condensed table-striped table-hover'
}