Return synonym name after deleting it.

So that UI can show the normalized name of what was removed.
This commit is contained in:
voussoir 2021-01-05 14:00:31 -08:00
parent 6fcc96f5aa
commit 0310ab38b7

View file

@ -1578,6 +1578,8 @@ class Tag(ObjectBase, GroupableMixin):
self.photodb.caches['tag_exports'].clear() self.photodb.caches['tag_exports'].clear()
self.photodb.sql_delete(table='tag_synonyms', pairs={'name': synname}) self.photodb.sql_delete(table='tag_synonyms', pairs={'name': synname})
return synname
@decorators.required_feature('tag.edit') @decorators.required_feature('tag.edit')
@decorators.transaction @decorators.transaction
def rename(self, new_name, *, apply_to_synonyms=True): def rename(self, new_name, *, apply_to_synonyms=True):