diff options
| author | root <root@viserion.(none)> | 2013-04-04 22:43:13 +0000 |
|---|---|---|
| committer | root <root@viserion.(none)> | 2013-04-04 22:43:13 +0000 |
| commit | 0b9a486b5e79d36c7eb7fa9592e1ebb4ec9ae668 (patch) | |
| tree | a2c624b1ce76c6d57a8a156766e4863710d8ae19 /archaeological_warehouse/forms.py | |
| parent | 199f535e39880d6ddbbe6a068378fec7ff9fc084 (diff) | |
| parent | b2a879890cef5721accff66904be478de488b120 (diff) | |
| download | Ishtar-0b9a486b5e79d36c7eb7fa9592e1ebb4ec9ae668.tar.bz2 Ishtar-0b9a486b5e79d36c7eb7fa9592e1ebb4ec9ae668.zip | |
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
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")) |
