#NEWLINE# def save( self , commit = True ) : #NEWLINE# #INDENT# obj = super ( ) . save ( commit = False ) #NEWLINE# if ( ( self . request is not None ) and self . request . user . is_authenticated ( ) ) : #NEWLINE# #INDENT# if ( not obj . pk ) : #NEWLINE# #INDENT# obj . creator = self . request . user #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj . last_modified_by = obj . request . user #NEWLINE# #UNINDENT# #UNINDENT# if commit : #NEWLINE# #INDENT# obj . save ( ) #NEWLINE# #UNINDENT# return obj