summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index 6638140d6..a5b8bb50c 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -143,6 +143,13 @@ class WarehouseSelect(CustomForm, TableSelect):
name = forms.CharField(label=_("Name"))
warehouse_type = forms.ChoiceField(label=_("Warehouse type"), choices=[])
town = get_town_field(label=_("Town"))
+ person_in_charge = forms.IntegerField(
+ label=_("Person in charge"),
+ widget=widgets.JQueryAutoComplete(
+ reverse_lazy("autocomplete-person"), associated_model=Person
+ ),
+ validators=[valid_id(Person)],
+ )
def __init__(self, *args, **kwargs):
super(WarehouseSelect, self).__init__(*args, **kwargs)