From 42116f233489b878a512295adb86b5556e7257f2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 24 Oct 2015 03:50:36 +0200 Subject: Imports: manage soft import (update) with unicity keys - script to initialize SRA file import --- ishtar_common/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/wizards.py') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index abbdda711..c8b017293 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -677,7 +677,7 @@ class Wizard(NamedUrlWizardView): if not multi: key = key.startswith(form_key) and key or form_key + '-' + key val = request.session[storage.prefix]['step_data'][form_key][key] - if type(val) in (list, tuple): + if type(val) in (list, tuple) and val: val = val[0] return val vals = [] -- cgit v1.2.3