diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-05-10 19:33:18 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-05-10 19:33:18 +0200 |
commit | a0d768890cecf190c3357756d5cece699775e17f (patch) | |
tree | 51699d2f851a818f4e227ff6b3f1087f2cd6c123 /ishtar/furnitures/forms.py | |
parent | af20c82733d306db31c13d9e4a1e568332fcaeaa (diff) | |
download | Ishtar-a0d768890cecf190c3357756d5cece699775e17f.tar.bz2 Ishtar-a0d768890cecf190c3357756d5cece699775e17f.zip |
Correct town check (closes #412)
Diffstat (limited to 'ishtar/furnitures/forms.py')
-rw-r--r-- | ishtar/furnitures/forms.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index 390af17f8..a8fc5d216 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -378,7 +378,6 @@ class Wizard(NamedUrlSessionFormWizard): getattr(obj, model+'s').clear() for key, value in m2m: if key not in m2m_items: - #getattr(obj, key+'s').clear() if type(key) == dict: vals = [] for item in getattr(obj, key+'s').all(): @@ -1460,7 +1459,7 @@ class OperationWizard(FileWizard): towns = [] town_form_key = 'towns-' + self.url_name town_ids = self.session_get_value(request, storage, - town_form_key, 'town', multi=True) + town_form_key, 'town', multi=True) or [] for town_id in town_ids: try: town = models.Town.objects.get(pk=int(town_id)) |