#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( DirtyFieldsMixin , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# post_save . connect ( reset_state , sender = self . __class__ , dispatch_uid = '{name}-DirtyFieldsMixin-sweeper' . format ( name = self . __class__ . __name__ ) ) #NEWLINE# reset_state ( sender = self . __class__ , instance = self )