From 6b6d9090385f63876d3f9437fc48f4d6fb208c96 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 27 Feb 2023 14:49:04 +0000 Subject: [PATCH] upgrade cripsy forms --- rad/settings.py | 4 +++- requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rad/settings.py b/rad/settings.py index bb9da5a4..be87adcd 100644 --- a/rad/settings.py +++ b/rad/settings.py @@ -74,6 +74,7 @@ INSTALLED_APPS = [ "django_unused_media", "django_htmx", "crispy_forms", + "crispy_bootstrap4", ] MIDDLEWARE = [ @@ -299,7 +300,8 @@ EMAIL_USE_SSL = True ADMINS = [("Ross","ross@xkjq.uk")] -CRISPY_TEMPLATE_PACK = 'bootstrap' +CRISPY_ALLOWED_TEMPLATE_PACK = 'bootstrap4' +CRISPY_TEMPLATE_PACK = 'bootstrap4' DEBUG_CONTAINER = False diff --git a/requirements.txt b/requirements.txt index 2969a181..fb279a74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,4 +35,5 @@ django-htmx debugpy git+https://github.com/jazzband/django-cookie-consent#django-cookie-consent django-crispy-forms -django-ninja \ No newline at end of file +django-ninja +crispy-bootstrap4 \ No newline at end of file