From cf456d65b71877cb05a1721c53985e4bd5b71be8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 Jun 2018 15:18:38 +0200 Subject: Fix dynamic choice field initialization --- ishtar_common/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 13ad1cd30..e01e74a14 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -193,7 +193,7 @@ class CustomForm(object): for k in splitted_key: value = value[k] choices.add(value) - choices = [('--', '')] + [(v, v) for v in sorted(list(choices))] + choices = [('', '')] + [(v, v) for v in sorted(list(choices))] return choices @classmethod -- cgit v1.2.3