def upload_status_view(modeladmin, request, form_url='', extra_context=None, task_uuid=''):
        response = {'success':False}
        task = verify_count.AsyncResult(task_uuid)
        if task is None:
            response['message'] = _('No task with that id.')
        else:
            response['success'] = True
            response['state'] = task.state
            response['task_id'] = task.task_id

            if task.state == 'SUCCESS':
                response['info'] = task.result
            else:
                response['message'] = str(task.result)

        return HttpResponse(json.dumps(response), mimetype='application/json')
Test function.
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/admin.py/SubjectAdmin.upload_status_view--crossover with--dataset/ETHPy150Open Robpol86/colorclass/tests/test_search.py/test_build_color_index