1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Overflow on collapsing tables and Bootstrap4 style

This commit is contained in:
Alexandre Iooss
2020-02-21 12:29:11 +01:00
parent 8d87b2b8f5
commit b395d3a633
3 changed files with 22 additions and 29 deletions

View File

@ -10,11 +10,10 @@ from .models import Club
class ClubTable(tables.Table):
class Meta:
attrs = {
'class':
'table table-bordered table-condensed table-striped table-hover'
'class': 'table table-condensed table-striped table-hover'
}
model = Club
template_name = 'django_tables2/bootstrap.html'
template_name = 'django_tables2/bootstrap4.html'
fields = ('id', 'name', 'email')
row_attrs = {
'class': 'table-row',
@ -28,9 +27,8 @@ class UserTable(tables.Table):
class Meta:
attrs = {
'class':
'table table-bordered table-condensed table-striped table-hover'
'class': 'table table-condensed table-striped table-hover'
}
template_name = 'django_tables2/bootstrap.html'
template_name = 'django_tables2/bootstrap4.html'
fields = ('last_name', 'first_name', 'username', 'email')
model = User