summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-05 23:45:19 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-05 23:45:19 +0200
commitf1f612d82014afa7c5612f998ae4c58bc4d65302 (patch)
treed89799e29dc18fc9c75c9c2f634ea6687410b8fd /archaeological_warehouse/forms.py
parent6e04566c15b214c15cda717862455248e8662ebf (diff)
downloadIshtar-f1f612d82014afa7c5612f998ae4c58bc4d65302.tar.bz2
Ishtar-f1f612d82014afa7c5612f998ae4c58bc4d65302.zip
Fix warehouse creation
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index 080467e55..d56df8139 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -67,6 +67,8 @@ class WarehouseForm(forms.Form):
required=False)
def __init__(self, *args, **kwargs):
+ if 'limits' in kwargs:
+ kwargs.pop('limits')
super(WarehouseForm, self).__init__(*args, **kwargs)
self.fields['warehouse_type'].choices = \
models.WarehouseType.get_types()