Skip to content

Commit a6ce64c

Browse files
committed
Properly migrate crispy_forms to 2.x
- Crispy removed all Bootstrap template packs. - These template packs are now available as standalone packages. - See https://github.com/django-crispy-forms/django-crispy-forms/releases/tag/2.0 - Fixes #1602 Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent e273c67 commit a6ce64c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ click==8.1.2
2121
coreapi==2.3.3
2222
coreschema==0.0.4
2323
cryptography==43.0.1
24+
crispy-bootstrap4==2024.1
2425
cwe2==3.0.0
2526
dateparser==1.1.1
2627
decorator==5.1.1

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ install_requires =
6262
django-filter>=24.0
6363
django-widget-tweaks>=1.5.0
6464
django-crispy-forms>=2.3
65+
crispy-bootstrap4>=2024.1
6566
django-environ>=0.11.0
6667
gunicorn>=23.0.0
6768

vulnerablecode/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"rest_framework.authtoken",
7979
"widget_tweaks",
8080
"crispy_forms",
81+
"crispy_bootstrap4",
8182
# for API doc
8283
"drf_spectacular",
8384
# required for Django collectstatic discovery
@@ -196,6 +197,7 @@
196197
str(PROJECT_DIR / "static"),
197198
]
198199

200+
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"
199201

200202
CRISPY_TEMPLATE_PACK = "bootstrap4"
201203

0 commit comments

Comments
 (0)