deal with redirects without slugs [wtf?]
This commit is contained in:
parent
967eb36c6c
commit
b252cd8b86
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class Location(LocationSlug, AccessRestrictionMixin, TitledMixin, models.Model):
|
|||
@property
|
||||
def add_search(self):
|
||||
return ' '.join((
|
||||
*(redirect.effective_slug for redirect in self.redirects.all()),
|
||||
*(redirect.slug for redirect in self.redirects.all() if redirect.slug),
|
||||
*self.other_titles,
|
||||
))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue