A convenience function exists. The function change_node_title
can be found at
Sefaria-Project/sefaria/helper/schema.py
change_node_title
accepts four arguments:
snode
: The node that is recieving a title changeold_title
: The title being replacedlang
: Language. Must be either'en'
of'he'
new_title
: Replacement title
Note on changing English Primary Titles
Changing an English primary title requires a cascade operation to be performed on the database. This is an expensive and possibly long running operation and should be made with caution. It is recommended not to change primary English titles during peak traffic.
TODO