Better club search bar
This commit is contained in:
parent
b46854e479
commit
ac5041f3ec
4 changed files with 51 additions and 41 deletions
|
|
@ -24,7 +24,8 @@ class ClubTable(tables.Table):
|
|||
}
|
||||
model = Club
|
||||
template_name = 'django_tables2/bootstrap4.html'
|
||||
fields = ('id', 'name', 'email')
|
||||
fields = ('name', 'email',)
|
||||
order_by = ('name',)
|
||||
row_attrs = {
|
||||
'class': 'table-row',
|
||||
'id': lambda record: "row-" + str(record.pk),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue