From 4934abccb809c5c87267e29935d26a705b5cb7b5 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 13 Feb 2024 01:51:15 -0500 Subject: [PATCH] Use auto margins and width to center django-tables2 tables --- cmsmanage/settings/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cmsmanage/settings/base.py b/cmsmanage/settings/base.py index f2def4e..807a00e 100644 --- a/cmsmanage/settings/base.py +++ b/cmsmanage/settings/base.py @@ -141,3 +141,4 @@ Q_CLUSTER = { # Django-Tables2 DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5-responsive.html" +DJANGO_TABLES2_TABLE_ATTRS = {"class": "table mx-auto w-auto"}