(request, group_id)
return JsonResponse({
        'group': {
            'id': group_id,
            'results': [
                {'id': task.id, 'executed': task.successful()}
                for task in results
            ] if results else []
        }
    })
Return if group was successfull as boolean.
Return if group was successfull as boolean.
Return if group was successfull as boolean .
def is_group_successful(request, group_id):
    """Return if group was successfull as boolean."""
    results = GroupResult.restore(group_id)

    return JsonResponse({
        'group': {
            'id': group_id,
            'results': [
                {'id': task.id, 'executed': task.successful()}
                for task in results
            ] if results else []
        }
    })
def is_group_successful ( request , group_id ) : results = GroupResult . restore ( group_id ) return JsonResponse ( { 'group' : { 'id' : group_id , 'results' : [ { 'id' : task . id , 'executed' : task . successful ( ) } for task in results ] if results else [ ] } } )