summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-10 13:18:40 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-10 13:18:40 +0100
commit49ac2ee178c23e193d22c52d6775028a67d7d3d8 (patch)
tree60a1880902f8cb7948ddb3bb3c6dc64b6aec96ca /archaeological_warehouse/forms.py
parentabfc78839b2c295b9d969cf5043bc2fe72fc0516 (diff)
downloadIshtar-49ac2ee178c23e193d22c52d6775028a67d7d3d8.tar.bz2
Ishtar-49ac2ee178c23e193d22c52d6775028a67d7d3d8.zip
Fix simple form for adding containers (refs #3410)
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py1
1 files changed, 1 insertions, 0 deletions
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