Adding aliases to help entries
This commit is contained in:
parent
e82799fb13
commit
f568b51ebe
3 changed files with 7 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue