#NEWLINE# @ disable_for_loaddata #NEWLINE# def record_agenda_ascription_action( sender , created , instance , **kwargs ) : #NEWLINE# #INDENT# if created : #NEWLINE# #INDENT# action . send ( instance . agenda , verb = 'agenda ascribed' , description = ( 'agenda "%s" ascribed to vote "%s"' % ( instance . agenda . __unicode__ ( ) , instance . vote . title ) ) , target = instance , timestamp = datetime . datetime . now ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# action . send ( instance . agenda , verb = 'agenda-vote relation updated' , description = ( 'relation between agenda "%s" and vote "%s" was updated' % ( instance . agenda . __unicode__ ( ) , instance . vote . title ) ) , target = instance , timestamp = datetime . datetime . now ( ) )