summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2013-04-04 22:43:13 +0000
committerÉtienne Loks <etienne.loks@proxience.com>2013-04-04 22:43:13 +0000
commitee8c9ad6004ab35e409c7041a0eba214b45c36d7 (patch)
treea2c624b1ce76c6d57a8a156766e4863710d8ae19 /archaeological_warehouse/forms.py
parent56aea239caffef95c481aac3b77a8d43e8d3ca35 (diff)
parente51684c2adb656d3ef14e40e649e280a6c0bf1b8 (diff)
downloadIshtar-ee8c9ad6004ab35e409c7041a0eba214b45c36d7.tar.bz2
Ishtar-ee8c9ad6004ab35e409c7041a0eba214b45c36d7.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.py5
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"))