1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-02-06 17:33:01 +00:00

24 lines
533 B
Python
Raw Normal View History

2020-04-29 16:59:59 +02:00
import django_tables2 as tables
2020-05-05 00:56:34 +02:00
from django_tables2 import A
2020-04-29 16:59:59 +02:00
from member.models import TFJMUser
class UserTable(tables.Table):
2020-05-05 00:56:34 +02:00
last_name = tables.LinkColumn(
"member:information",
args=[A("pk")],
)
first_name = tables.LinkColumn(
"member:information",
args=[A("pk")],
)
2020-04-29 16:59:59 +02:00
class Meta:
model = TFJMUser
2020-04-30 21:07:12 +02:00
fields = ("last_name", "first_name", "role", "date_joined", )
attrs = {
'class': 'table table-condensed table-striped table-hover'
}