Fix bug with showing msg about image absent

Change-Id: I664808430ac5d4466f8b90d4e495c62c72db6201
This commit is contained in:
Ekaterina Fedorova 2013-12-09 17:51:01 +04:00
parent 2d490c512e
commit 92df9e1016
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ class Wizard(ModalFormMixin, LazyWizard):
extended_description = form.fields['description'].initial or ''
if extended_description:
data = json.loads(extended_description)
unavailable_services, reasons = data and zip(*data) or [], []
if unavailable_services:
if data:
unavailable_services, reasons = zip(*data)
services_msg = ', '.join(unavailable_services)
reasons_msg = '\n'.join(set(reasons))
extended_description = 'Services {0} are not available. ' \