summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-03 20:14:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-03 20:14:12 +0100
commitae6ddecdc6c9dc49488341a9c0d9a20282858e7b (patch)
tree97e275e850bf649636c1e0943c0dd32eea10e4d7 /ishtar_common/widgets.py
parent5f843f6f37b7f711657a951b4f219103aa109087 (diff)
downloadIshtar-ae6ddecdc6c9dc49488341a9c0d9a20282858e7b.tar.bz2
Ishtar-ae6ddecdc6c9dc49488341a9c0d9a20282858e7b.zip
Readjust search fields with flex
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index dc6324b79..688648e10 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -567,9 +567,10 @@ class JQueryJqGrid(forms.RadioSelect):
return jq_col_names, extra_cols
def render(self, name, value=None, attrs=None):
- t = loader.get_template('blocks/form_snippet.html')
+ t = loader.get_template('blocks/form_flex_snippet.html')
form = self.form()
- rendered = t.render(Context({'form': form}))
+ rendered = t.render(Context({'form': form,
+ 'flex': True}))
dct = {}
if self.new:
model_name = self.associated_model._meta.object_name.lower()