order table of club for Pollion

This commit is contained in:
Pierre-antoine Comby 2020-06-02 09:37:25 +02:00
parent 424646054f
commit f2ac0cd8cf
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class ClubTable(tables.Table):
attrs = {
'class': 'table table-condensed table-striped table-hover'
}
order_by = ('id',)
model = Club
template_name = 'django_tables2/bootstrap4.html'
fields = ('id', 'name', 'email')