show that rows are clickable, fix #75

This commit is contained in:
Pierre-antoine Comby 2021-10-01 14:35:29 +02:00
parent d1a9f21b56
commit 946bc1e497
1 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,8 @@ class ClubTable(tables.Table):
row_attrs = { row_attrs = {
'class': 'table-row', 'class': 'table-row',
'id': lambda record: "row-" + str(record.pk), 'id': lambda record: "row-" + str(record.pk),
'data-href': lambda record: record.pk 'data-href': lambda record: record.pk,
'style':'cursor:pointer',
} }
@ -74,7 +75,8 @@ class UserTable(tables.Table):
model = User model = User
row_attrs = { row_attrs = {
'class': 'table-row', 'class': 'table-row',
'data-href': lambda record: record.pk 'data-href': lambda record: record.pk,
'style':'cursor:pointer',
} }