diff options
Diffstat (limited to 'archaeological_warehouse/forms.py')
| -rw-r--r-- | archaeological_warehouse/forms.py | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index d61658b0e..e91d04d61 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -149,11 +149,18 @@ class WarehouseDeletionForm(FinalForm):  class ContainerForm(ManageOldType, forms.Form):      form_label = _(u"Container")      associated_models = {'container_type': models.ContainerType, -                         'location': models.Warehouse} +                         'location': models.Warehouse, +                         'responsible': models.Warehouse}      reference = forms.CharField(label=_(u"Ref."))      container_type = forms.ChoiceField(label=_(u"Container type"), choices=[])      location = forms.IntegerField( -        label=_(u"Warehouse"), +        label=_(u"Current location (warehouse)"), +        widget=widgets.JQueryAutoComplete( +            reverse_lazy('autocomplete-warehouse'), +            associated_model=models.Warehouse, new=True), +        validators=[valid_id(models.Warehouse)]) +    responsible = forms.IntegerField( +        label=_(u"Responsible warehouse"),          widget=widgets.JQueryAutoComplete(              reverse_lazy('autocomplete-warehouse'),              associated_model=models.Warehouse, new=True), | 
