summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py14
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,