(domain, location_type_code)
return SQLLocation.objects.filter(
        domain=domain,
        is_archived=False,
        location_type__code=location_type_code,
    ).values_list('location_id', flat=True)
Returns a QuerySet with the location_ids of all the unarchived SQLLocations in the
    given domain whose LocationType's code matches the given location_type_code.
Returns a QuerySet with the location_ids of all the unarchived SQLLocations in the
    given domain whose LocationType's code matches the given location_type_code.
Returns a QuerySet with the location_ids of all the unarchived SQLLocations in the given domain whose LocationType s code matches the given location_type_code .
def get_location_ids_with_location_type(domain, location_type_code):
    """
    Returns a QuerySet with the location_ids of all the unarchived SQLLocations in the
    given domain whose LocationType's code matches the given location_type_code.
    """
    return SQLLocation.objects.filter(
        domain=domain,
        is_archived=False,
        location_type__code=location_type_code,
    ).values_list('location_id', flat=True)
def get_location_ids_with_location_type ( domain , location_type_code ) : return SQLLocation . objects . filter ( domain = domain , is_archived = False , location_type__code = location_type_code , ) . values_list ( 'location_id' , flat = True )