Return synonym name after deleting it.
So that UI can show the normalized name of what was removed.
This commit is contained in:
		
							parent
							
								
									6fcc96f5aa
								
							
						
					
					
						commit
						0310ab38b7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1578,6 +1578,8 @@ class Tag(ObjectBase, GroupableMixin): | |||
|         self.photodb.caches['tag_exports'].clear() | ||||
|         self.photodb.sql_delete(table='tag_synonyms', pairs={'name': synname}) | ||||
| 
 | ||||
|         return synname | ||||
| 
 | ||||
|     @decorators.required_feature('tag.edit') | ||||
|     @decorators.transaction | ||||
|     def rename(self, new_name, *, apply_to_synonyms=True): | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue