From 769b82597855b41362593c28328f84749c025d19 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Tue, 17 Sep 2024 16:37:43 +0200
Subject: [PATCH] Upgrade boostrap to 4.6.2, use bs-custom-file-input,
 ovverride layout to prevent CSP error

---
 basetheme_bootstrap/static/js/basetheme_bootstrap.js | 4 ++++
 setup.cfg                                            | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/basetheme_bootstrap/static/js/basetheme_bootstrap.js b/basetheme_bootstrap/static/js/basetheme_bootstrap.js
index 3b1abe7..46a15f3 100644
--- a/basetheme_bootstrap/static/js/basetheme_bootstrap.js
+++ b/basetheme_bootstrap/static/js/basetheme_bootstrap.js
@@ -105,3 +105,7 @@ $(document).ready(function(){
         $('.nav-tabs a.nav-item[href="#'+url.split('#')[1] + '"]').tab('show');
     }
 });
+
+$(document).ready(function () {
+  bsCustomFileInput.init()
+})
diff --git a/setup.cfg b/setup.cfg
index c3e0ae0..651f44c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
 [metadata]
 name = django-basetheme-bootstrap
-version = 1.8.3
+version = 1.8.4
 description = Django Basetheme Bootstrap
 long_description = file: README.rst
 url = https://gitlab.pasteur.fr/bbrancot/django-basetheme-bootstrap
-- 
GitLab