#NEWLINE# @ atomic ( ) #NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( self . end_time and self . start_time ) : #NEWLINE# #INDENT# interval = ( self . end_time - self . start_time ) #NEWLINE# self . time_taken = ( interval . total_seconds ( ) * 1000 ) #NEWLINE# #UNINDENT# if ( not self . pk ) : #NEWLINE# #INDENT# if self . request : #NEWLINE# #INDENT# self . request . num_sql_queries += 1 #NEWLINE# self . request . save ( update_fields = [ 'num_sql_queries' ] ) #NEWLINE# #UNINDENT# #UNINDENT# super ( SQLQuery , self ) . save ( * args , ** kwargs )