Skip to content

Commit

Permalink
Merge pull request #1848 from Sefaria/chore/sc-24547/fix-issues-creat…
Browse files Browse the repository at this point in the history
…ed-by-renaming-topic-titles

fix(Topics): dont cascade title change to slug
  • Loading branch information
akiva10b authored Mar 27, 2024
2 parents e06cfa9 + 46ac15b commit ea38194
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 ea38194

Please sign in to comment.