diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-07-17 11:24:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-07-17 11:24:39 +0200 |
commit | c134fda7897e667b4a3d87b0dd5413817d26d9ce (patch) | |
tree | a59cf4f022e1a127e18baade9a7a82c8852b5d7e /ishtar_common/forms.py | |
parent | 9df94fa062e738356070226965e21dfd90a4a3d0 (diff) | |
download | Ishtar-c134fda7897e667b4a3d87b0dd5413817d26d9ce.tar.bz2 Ishtar-c134fda7897e667b4a3d87b0dd5413817d26d9ce.zip |
Fix cached forms that doesn't allow modeltypes update
Don't instanciate the form passed to the widget
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 4477213c9..bc780ef9a 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -136,7 +136,7 @@ def get_form_selection(class_name, label, key, model, base_form, get_url, 'currents':{key:model},} attrs[key] = forms.IntegerField(label="", required=False, validators=[models.valid_id(model)], - widget=widgets.JQueryJqGrid(reverse_lazy(get_url), base_form(), model, + widget=widgets.JQueryJqGrid(reverse_lazy(get_url), base_form, model, new=new, new_message=new_message)) def clean(self): cleaned_data = self.cleaned_data |