Adding aliases to help entries

This commit is contained in:
trinsic 2016-12-16 19:05:16 -05:00
parent e82799fb13
commit f568b51ebe
3 changed files with 7 additions and 1 deletions

View file

@ -42,6 +42,8 @@ class HelpEntryManager(TypedObjectManager):
if dbref:
return self.filter(id=dbref)
topics = self.filter(db_key__iexact=topicstr)
if not topics:
topics = self.get_by_alias(topicstr)
if not topics and not exact:
topics = self.filter(db_key__istartswith=topicstr)
if not topics: