Skip to content

Commit

Permalink
index user skills in all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
samonaisi committed Jan 31, 2025
1 parent e082a77 commit 6f47889
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/search/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ def prepare_content(self, instance: ProjectUser) -> str:
)

def prepare_skills(self, instance: ProjectUser) -> str:
return " ".join([skill.tag.title for skill in instance.skills.all()])
return " ".join(
getattr(skill.tag, f"title_{ln}", "") or ""
for skill in instance.skills.all()
for ln in settings.REQUIRED_LANGUAGES
)

def prepare_people_groups(self, instance: ProjectUser) -> str:
return " ".join(
Expand Down

0 comments on commit 6f47889

Please sign in to comment.