fix serializing of searchable locations without slugs
This commit is contained in:
parent
702625e536
commit
967eb36c6c
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.slug for redirect in self.redirects.all()),
|
||||
*(redirect.effective_slug for redirect in self.redirects.all()),
|
||||
*self.other_titles,
|
||||
))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue