From 8f4136267df28d5b13d31d3bfbb74f0ca7edcb6e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 23 Jan 2018 16:33:10 +0100 Subject: Widgets: image input --- ishtar_common/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/widgets.py') diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index 24a87d5a8..a9fcdf798 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -261,8 +261,8 @@ class DeleteWidget(forms.CheckboxInput): class ImageFileInput(ClearableFileInput): - template_with_initial = u'%(initial)s'\ - u' %(clear_template)s
%(input_text)s: %(input)s' + template_name = 'widgets/image_input.html' + NO_FORM_CONTROL = True class SquareMeterWidget(forms.TextInput): -- cgit v1.2.3