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 | f1f612d82014afa7c5612f998ae4c58bc4d65302 (patch) | |
| tree | d89799e29dc18fc9c75c9c2f634ea6687410b8fd | |
| parent | 6e04566c15b214c15cda717862455248e8662ebf (diff) | |
| download | Ishtar-f1f612d82014afa7c5612f998ae4c58bc4d65302.tar.bz2 Ishtar-f1f612d82014afa7c5612f998ae4c58bc4d65302.zip | |
Fix warehouse creation
| -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() |
