#NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( not args . slug ) : #NEWLINE# #INDENT# self . slug = re . sub ( '[^\\w]+' , '-' , self . title . lower ( ) ) . strip ( '-' ) #NEWLINE# #UNINDENT# ret = super ( Entry , self ) . save ( * args , ** kwargs ) #NEWLINE# self . update_search_index ( ) #NEWLINE# return ret