From 0fb2540a3359a38a2df7db05b76f6238e0d5ae35 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 24 Mar 2022 10:31:52 +0100 Subject: Improve file widget with bootstrap --- ishtar_common/widgets.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/widgets.py') diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index efea07065..1f5a169ba 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -479,6 +479,10 @@ class DeleteSwitchWidget(SwitchWidget): extra_label = _("Delete") +class BSClearableFileInput(ClearableFileInput): + template_name = "widgets/clearable_file_input.html" + + class ImageFileInput(ClearableFileInput): template_name = "widgets/image_input.html" NO_FORM_CONTROL = True -- cgit v1.2.3