diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-22 17:02:11 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-22 17:02:11 +0200 |
commit | 3edb78f2806d1ec790b751ef6ee4b6fb59abb86a (patch) | |
tree | 2fc4bd28fb7b1a7edca5a138cf929adcacb6a09d /archaeological_finds/forms.py | |
parent | 29e3e7daa64e573b7481db4c0c15f1c2bc8730d6 (diff) | |
download | Ishtar-3edb78f2806d1ec790b751ef6ee4b6fb59abb86a.tar.bz2 Ishtar-3edb78f2806d1ec790b751ef6ee4b6fb59abb86a.zip |
Basket management: select multiple - select all
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 95af01719..ca2946a21 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -251,6 +251,20 @@ class FindFormSelection(forms.Form): validators=[valid_id(models.Find)]) +class MultipleFindFormSelection(forms.Form): + form_label = _("Find search") + associated_models = {'pk': models.Find} + currents = {'pk': models.Find} + pk = forms.IntegerField( + label="", required=False, + widget=widgets.JQueryJqGrid( + reverse_lazy('get-find'), + FindSelect, models.Find, + multiple_select=True, + source_full=reverse_lazy('get-find-full')), + validators=[valid_id(models.Find)]) + + class BaseTreatmentForm(forms.Form): form_label = _(u"Base treatment") associated_models = {'treatment_type': models.TreatmentType, |