diff options
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 |
commit | 67499224d71e34c49bf4550cc81fd0fe3efc092c (patch) | |
tree | d89799e29dc18fc9c75c9c2f634ea6687410b8fd /archaeological_warehouse/forms.py | |
parent | 15b96ce779fef77bfa38d39c67b5c55658218ad6 (diff) | |
download | Ishtar-67499224d71e34c49bf4550cc81fd0fe3efc092c.tar.bz2 Ishtar-67499224d71e34c49bf4550cc81fd0fe3efc092c.zip |
Fix warehouse creation
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r-- | archaeological_warehouse/forms.py | 2 |
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() |