diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-13 15:18:38 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-13 15:18:38 +0200 |
commit | cf456d65b71877cb05a1721c53985e4bd5b71be8 (patch) | |
tree | cff7233013c74bf2f13cebefc0fc7fbd6d25f76e /ishtar_common/forms.py | |
parent | 619c482c62044d8a00ec1c6a24548c5440c98396 (diff) | |
download | Ishtar-cf456d65b71877cb05a1721c53985e4bd5b71be8.tar.bz2 Ishtar-cf456d65b71877cb05a1721c53985e4bd5b71be8.zip |
Fix dynamic choice field initialization
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |