summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-04-15 13:17:12 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:20 +0100
commit582be0e5c7e43674b3dee79e3838f650f87893b8 (patch)
tree128f885d5edef830d669466dccc3f313482aaa2e /ishtar_common
parent3bba23e35348744b58809a2068d6a8536b6c02e1 (diff)
downloadIshtar-582be0e5c7e43674b3dee79e3838f650f87893b8.tar.bz2
Ishtar-582be0e5c7e43674b3dee79e3838f650f87893b8.zip
Fix warehouse division forms
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/wizards.py9
1 files changed, 4 insertions, 5 deletions
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: