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 | 2b5e4f5cd314bdb3db394989d2134bc160b63ea4 (patch) | |
| tree | cff7233013c74bf2f13cebefc0fc7fbd6d25f76e | |
| parent | 228275f656142f0df065d9036f03c84f62af9aa6 (diff) | |
| download | Ishtar-2b5e4f5cd314bdb3db394989d2134bc160b63ea4.tar.bz2 Ishtar-2b5e4f5cd314bdb3db394989d2134bc160b63ea4.zip | |
Fix dynamic choice field initialization
| -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 | 
