#NEWLINE# def after_return( self , status , retval , task_id , args , kwargs , einfo ) : #NEWLINE# #INDENT# '\n        Save final status, results, etc.\n        ' #NEWLINE# from panda.models import TaskStatus #NEWLINE# query = args [ 0 ] #NEWLINE# task_status = TaskStatus . objects . get ( id = args [ 1 ] ) #NEWLINE# self . send_notifications ( query , einfo , retval , einfo )