summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-02 20:52:56 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-02 20:52:56 +0200
commit810505f6071739d265d967f618dc001f9d8049e4 (patch)
tree79c374f8898029e2a51891772ea26e34270acdbd /archaeological_warehouse/forms.py
parent32ab6d75bd1cd5163e8d21d0d49cd538b36612e0 (diff)
downloadIshtar-810505f6071739d265d967f618dc001f9d8049e4.tar.bz2
Ishtar-810505f6071739d265d967f618dc001f9d8049e4.zip
Fix container 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 f045fac1e..fb36d6c18 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -99,6 +99,8 @@ class ContainerForm(forms.Form):
widget=forms.Textarea, required=False)
def __init__(self, *args, **kwargs):
+ if 'limits' in kwargs:
+ kwargs.pop('limits')
super(ContainerForm, self).__init__(*args, **kwargs)
self.fields['container_type'].choices = \
models.ContainerType.get_types()