From 66ced94b5847d4127423fdec2f825900f01e6ee7 Mon Sep 17 00:00:00 2001 From: Daniel Benoy Date: Wed, 24 Jul 2013 07:10:10 -0400 Subject: [PATCH] Fixed a trace from ev.search_help_entry --- src/help/manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/help/manager.py b/src/help/manager.py index 6bc6a2c60a..61bf5a1c68 100644 --- a/src/help/manager.py +++ b/src/help/manager.py @@ -91,7 +91,7 @@ class HelpEntryManager(models.Manager): category - limit the search to a particular help topic """ ostring = ostring.strip().lower() - if help_categories: - return self.filter(db_topicstr__iexact=ostring, db_help_category__iexact=help_category) + if help_category: + return self.filter(db_key__iexact=ostring, db_help_category__iexact=help_category) else: - return self.filter(db_topicstr__iexact=ostring) + return self.filter(db_key__iexact=ostring)