

def get_available_space_in_data_centers(data_centers):
    available = Rack.objects.filter(server_room__data_center__in=data_centers, require_position=True).values_list('server_room__data_center__name').annotate(s=Sum('max_u_height'))
    return Counter(dict(available))

dataset/ETHPy150Open allegro/ralph/src/ralph/admin/templatetags/dashboard_tags.py get_available_space_in_data_centers/original