diff --git a/apps/member/tables.py b/apps/member/tables.py index 591149ec..a6de17d2 100644 --- a/apps/member/tables.py +++ b/apps/member/tables.py @@ -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 diff --git a/apps/note/tables.py b/apps/note/tables.py index e2f5c763..43a1ef74 100644 --- a/apps/note/tables.py +++ b/apps/note/tables.py @@ -11,10 +11,10 @@ class HistoryTable(tables.Table): class Meta: attrs = { 'class': - 'table table-bordered table-condensed table-striped table-hover' + 'table table-condensed table-striped table-hover' } model = Transaction - template_name = 'django_tables2/bootstrap.html' + template_name = 'django_tables2/bootstrap4.html' sequence = ('...', 'total', 'valid') total = tables.Column() # will use Transaction.total() !! diff --git a/templates/member/profile_detail.html b/templates/member/profile_detail.html index 87cdc531..9c13d7c7 100644 --- a/templates/member/profile_detail.html +++ b/templates/member/profile_detail.html @@ -47,33 +47,28 @@
-
-
- -
-
- -
-
- {% render_table club_list %} + +
+ {% render_table club_list %}
-
-
- -
+ -
-
- {% render_table history_list %} -
+
+ {% render_table history_list %}