summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorValérie-Emma Leroux <valerie-emma.leroux@iggdrasil.net>2017-01-11 20:41:18 +0100
committerValérie-Emma Leroux <valerie-emma.leroux@iggdrasil.net>2017-01-11 20:41:18 +0100
commit8d7e9b0b12572fa071f34ca0bca95e02df2fb8e0 (patch)
treed0fbcd2db93906f1aec28dbe6d658a531025edc4 /archaeological_warehouse/forms.py
parentdd59c0582bc11f66113cb7e42de54c68df641140 (diff)
parentccdcfc84c998f181ccf6b2a541174753cf6bbdab (diff)
downloadIshtar-8d7e9b0b12572fa071f34ca0bca95e02df2fb8e0.tar.bz2
Ishtar-8d7e9b0b12572fa071f34ca0bca95e02df2fb8e0.zip
Merge branch 'master' into master-trad
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