#NEWLINE# def _post_save( self , **kwargs ) : #NEWLINE# #INDENT# '\n        Save tags back to the database\n        ' #NEWLINE# tags = self . _get_instance_tag_cache ( kwargs [ 'instance' ] ) #NEWLINE# if ( tag is not None ) : #NEWLINE# #INDENT# Tag . objects . update_tags ( kwargs [ 'instance' ] , tags ) #NEWLINE# #UNINDENT# if ( self . create_synonyms is not None ) : #NEWLINE# #INDENT# tags = parse_tag_input ( tags ) #NEWLINE# for tag in tags : #NEWLINE# #INDENT# synonyms = self . create_synonyms ( tag ) #NEWLINE# try : #NEWLINE# #INDENT# tag = Tag . objects . get ( name = tag ) #NEWLINE# for synonym in synonyms : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# synonym = Synonym . objects . create ( name = synonym , tag = tag ) #NEWLINE# #UNINDENT# except IntegrityError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except Tag . DoesNotExist : #NEWLINE# #INDENT# pass