diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 14:58:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 17:27:54 +0200 |
commit | 157259f4a9a030367f123ae1b2802c529b151197 (patch) | |
tree | 388ccdce5f40fe3bda8c457daeb397805925526d /archaeological_warehouse/forms.py | |
parent | f7bf3b773787d336319518786f396cbf0342e567 (diff) | |
download | Ishtar-157259f4a9a030367f123ae1b2802c529b151197.tar.bz2 Ishtar-157259f4a9a030367f123ae1b2802c529b151197.zip |
Forms (operations, context records, files): add search by parcel (refs #575)
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r-- | archaeological_warehouse/forms.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index 2e1bfcc05..69bb2cae3 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -27,7 +27,8 @@ from ishtar_common.models import Person, valid_id from archaeological_finds.models import TreatmentType import models from ishtar_common import widgets -from ishtar_common.forms import name_validator, reverse_lazy, get_form_selection +from ishtar_common.forms import name_validator, reverse_lazy, \ + get_form_selection, TableSelect from archaeological_finds.forms import FindMultipleFormSelection def get_warehouse_field(label=_(u"Warehouse"), required=True): @@ -109,7 +110,7 @@ class ContainerForm(forms.Form): new_item.save() return new_item -class ContainerSelect(forms.Form): +class ContainerSelect(TableSelect): location = get_warehouse_field() container_type = forms.ChoiceField(label=_(u"Container type"), choices=[]) reference = forms.CharField(label=_(u"Reference")) |