Fixed a trace from ev.search_help_entry

This commit is contained in:
Daniel Benoy 2013-07-24 07:10:10 -04:00
parent 1e5b52f685
commit 66ced94b58

View file

@ -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)