From d20297193d978ab7e34bcbc03de91a1f7e191ff0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 15 Apr 2020 13:17:12 +0200 Subject: Fix warehouse division forms --- ishtar_common/wizards.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ishtar_common/wizards.py') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index eac8d1868..db2cb7829 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -297,7 +297,7 @@ class Wizard(IshtarWizard): else: # formset for formset_idx, v in enumerate(values): - prefix = u"-%d-" % formset_idx + prefix = "-%d-" % formset_idx for key in v: form_key = next_step + prefix + key if isinstance(v, MultiValueDict): @@ -420,9 +420,9 @@ class Wizard(IshtarWizard): value = _(value) if type(value) == bool: if value: - value = _(u"Yes") + value = _("Yes") else: - value = _(u"No") + value = _("No") elif key in associated_models: values = [] if type(value) in (tuple, list): @@ -440,7 +440,7 @@ class Wizard(IshtarWizard): else: value = str(item) rendered_values.append(value) - value = u" ; ".join(rendered_values) + value = " ; ".join(rendered_values) current_form_data.append((lbl, value, '')) if is_formset: @@ -1418,7 +1418,6 @@ class Wizard(IshtarWizard): query = related if not through and not obj._meta.ordering: query = query.order_by('pk') - # an intermediary model is used through_fields = [] if through and not related.model._meta.auto_created: -- cgit v1.2.3