diff options
author | Chris Ball <cjb@laptop.org> | 2010-09-06 18:35:19 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-09-07 11:00:56 -0400 |
commit | 8d1acfb3314d9276f3c6d5fa9c64ac93c4052775 (patch) | |
tree | fbfc43c346baeabad84c89e0623f58ece9bb84c9 | |
parent | f1c6c6a0122c5bed01ab7a084da1f2a67e796f37 (diff) | |
download | bugseverywhere-8d1acfb3314d9276f3c6d5fa9c64ac93c4052775.tar.gz |
cfbe: Fix assigned-to-None search
-rw-r--r-- | interfaces/web/templates/base.html | 4 | ||||
-rw-r--r-- | interfaces/web/web.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/interfaces/web/templates/base.html b/interfaces/web/templates/base.html index 8f22d73..9666d3e 100644 --- a/interfaces/web/templates/base.html +++ b/interfaces/web/templates/base.html @@ -90,7 +90,9 @@ <ul class="filter-items"> <li><a href="/?assignee=None">Unassigned</a></li> {% for assignee in assignees %} - <li><a href="/?assignee={{ assignee|e }}">{{ assignee|e }}</a></li> + {% if assignee != "None" %} + <li><a href="/?assignee={{ assignee|e }}">{{ assignee|e }}</a></li> + {% endif %} {% endfor %} </ul> </div> diff --git a/interfaces/web/web.py b/interfaces/web/web.py index 4d922e2..44bdef1 100644 --- a/interfaces/web/web.py +++ b/interfaces/web/web.py @@ -63,7 +63,7 @@ class WebInterface: bugs = [bug for bug in self.bd if bug.status in status] if assignee != '': - assignee = EMPTY if assignee == 'None' else assignee + assignee = None if assignee == 'None' else assignee bugs = [bug for bug in bugs if bug.assigned == assignee] if target != '': |