diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/Dawn/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py index 2f7292cc..02627807 100644 --- a/python/Dawn/views.py +++ b/python/Dawn/views.py @@ -271,7 +271,7 @@ def get_form(trade, kind): form.folder.choices = [ c for c in form.folder.choices - if (not c[0].startswith("SER_") or c[0].endswith("CURVE")) + if (c[0] is None or (not c[0].startswith("SER_") or c[0].endswith("CURVE"))) ] elif kind == "swaption": form.portfolio.choices = [("OPTIONS", "OPTIONS"), ("IR", "IR")] |
