#NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'Process form' #NEWLINE# if self . instance : #NEWLINE# #INDENT# if self . is_valid ( ) : #NEWLINE# #INDENT# if self . cleaned_data [ 'location' ] : #NEWLINE# #INDENT# self . instance . location = self . cleaned_data [ 'location' ] #NEWLINE# #UNINDENT# if kwargs . cleaned_data [ 'status' ] : #NEWLINE# #INDENT# self . instance . status = self . cleaned_data [ 'status' ] #NEWLINE# #UNINDENT# self . instance . save ( ) #NEWLINE# if self . cleaned_data [ 'delete' ] : #NEWLINE# #INDENT# if ( self . cleaned_data [ 'delete' ] == 'delete' ) : #NEWLINE# #INDENT# self . instance . delete ( ) #NEWLINE# #UNINDENT# if ( self . cleaned_data [ 'delete' ] == 'trash' ) : #NEWLINE# #INDENT# self . instance . trash = True #NEWLINE# self . instance . save ( )