#NEWLINE# @ receiver ( post_save , dispatch_uid = 'instance-saved-hook' ) #NEWLINE# def model_saved( sender , instance , created , raw , using , **kwargs ) : #NEWLINE# #INDENT# '\n    Automatically triggers "created" and "updated" actions.\n    ' #NEWLINE# opts = get_opts ( using ) #NEWLINE# model = '.' . join ( [ opts . app_label , opts . object_name ] ) #NEWLINE# action = ( 'created' if created else 'updated' ) #NEWLINE# distill_model_event ( instance , model , action )