fix serializing of searchable locations without slugs

This commit is contained in:
Laura Klünder 2024-12-15 13:53:27 +00:00
parent 702625e536
commit 967eb36c6c

View file

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