Skip to content

Commit

Permalink
fix(Topics): dont cascade title change to slug
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekaplan123 committed Mar 19, 2024
1 parent 764cd6d commit 46ac15b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sefaria/model/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ def _sanitize(self):
def set_titles(self, titles):
self.title_group = TitleGroup(titles)

def add_title(self, text, lang, primary=False, replace_primary=False):
super(Topic, self).add_title(text, lang, primary=primary, replace_primary=replace_primary)
if lang == 'en' and primary:
self.set_slug_to_primary_title()

def title_is_transliteration(self, title, lang):
return self.title_group.get_title_attr(title, lang, 'transliteration') is not None

Expand Down

0 comments on commit 46ac15b

Please sign in to comment.