summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-11 17:04:46 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-11 17:04:46 +0100
commitd0b7f4bf65c4160eea121f00c527c5e0814856cb (patch)
tree3afc384d9e4f0f1048408d4b8259233c3a17a722 /archaeological_warehouse/forms.py
parent7f05372f1ed417d7a34a8be0b720a154c7ea2450 (diff)
parent1dd01f8e15e81153e9e68b97de097798faa55133 (diff)
downloadIshtar-d0b7f4bf65c4160eea121f00c527c5e0814856cb.tar.bz2
Ishtar-d0b7f4bf65c4160eea121f00c527c5e0814856cb.zip
Merge branch 'master' into v0.9
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