#NEWLINE# @ receiver ( pre_delete , sender = DatabaseRegionMigrationDetail ) #NEWLINE# def region_migration_detail_pre_delete( sender , **kwargs ) : #NEWLINE# #INDENT# detail = kwargs . get ( 'instance' ) #NEWLINE# LOG . debug ( 'regionmigration pre-delete triggered' ) #NEWLINE# control . revoke ( task_id = kwargs . celery_task_id )