From 51ac4ec7f4ddcc77f4c285f812476fdbe7563cde Mon Sep 17 00:00:00 2001 From: Alex Lubbock Date: Tue, 3 Sep 2024 20:05:56 +0100 Subject: [PATCH] chore(deps): upgrade django-crispy-forms to v2.3 --- requirements.txt | 3 ++- thunordjango/settings.py | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0b9683b0..3d18a844 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,8 @@ xlrd python-magic Django==4.2.16 django-allauth==64.2.0 -django-crispy-forms==1.14.0 +django-crispy-forms==2.3.0 +crispy-bootstrap3==2024.1 django-custom-user==1.1 django-guardian==2.4.0 django-invitations==2.1.0 diff --git a/thunordjango/settings.py b/thunordjango/settings.py index 1e90853e..95cf102c 100644 --- a/thunordjango/settings.py +++ b/thunordjango/settings.py @@ -92,9 +92,15 @@ 'invitations', 'guardian', 'crispy_forms', + 'crispy_bootstrap3', 'webpack_loader' ] + +CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap3" + +CRISPY_TEMPLATE_PACK = "bootstrap3" + SITE_ID = 1 MIGRATION_MODULES = { 'sites': 'thunorweb.fixtures.sites_migrations', @@ -294,8 +300,6 @@ USE_TZ = True -CRISPY_TEMPLATE_PACK = 'bootstrap3' - SHORT_DATETIME_FORMAT = 'Y-m-d H:i:s T' DATETIME_FORMAT = SHORT_DATETIME_FORMAT