diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-09 20:06:04 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-09 20:06:04 +0200 |
commit | f28caac841516b268af2df4230654216bc9c3d72 (patch) | |
tree | e56ef03b1e10781afb29039bfad06a977bf9ddf2 /ishtar_common | |
parent | 11e03ef2e267a79dcd5b96bc170c852fc4d0dc23 (diff) | |
download | Ishtar-f28caac841516b268af2df4230654216bc9c3d72.tar.bz2 Ishtar-f28caac841516b268af2df4230654216bc9c3d72.zip |
Manage hierarchical display with select2
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/static/media/style.css | 6 | ||||
-rw-r--r-- | ishtar_common/widgets.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ishtar_common/static/media/style.css b/ishtar_common/static/media/style.css index 011db3652..178f02362 100644 --- a/ishtar_common/static/media/style.css +++ b/ishtar_common/static/media/style.css @@ -101,6 +101,12 @@ div.form { border:1px solid #D14; } +.select2-container .select2-results__option { + font-family: monospace; + padding: 0 6px; + font-size: 1.1em; +} + hr.spacer{ clear:both; border:0; diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index 94709406c..b0f28a6cf 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -118,7 +118,7 @@ class Select2Multiple(forms.SelectMultiple): try: choices.append((v, self.model.objects.get(pk=v))) except (self.model.DoesNotExist, ValueError): - # an old reference ? it should not happen + # an old reference? it should not happen pass html = super(Select2Multiple, self).render(name, value, attrs, choices) |