From 49ac2ee178c23e193d22c52d6775028a67d7d3d8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 10 Jan 2017 13:18:40 +0100 Subject: Fix simple form for adding containers (refs #3410) --- archaeological_warehouse/forms.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archaeological_warehouse/forms.py') diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index e91d04d61..d76ce6b70 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -184,6 +184,7 @@ class ContainerForm(ManageOldType, forms.Form): dct['container_type'] = models.ContainerType.objects.get( pk=dct['container_type']) dct['location'] = models.Warehouse.objects.get(pk=dct['location']) + dct['responsible'] = models.Warehouse.objects.get(pk=dct['responsible']) new_item = models.Container(**dct) new_item.save() return new_item -- cgit v1.2.3