'list' object has no attribute '_meta'i try to merge 2 object in array after i can this but i can't return json response
def regions(request):
result_set = []
for u in Regions.objects.all()[:100]:
if 'a' in u.country:
result_set.append([u ,Subregions.objects.filter(region_id=u.id)])
data = serializers.serialize('json', result_set)
return HttpResponse(data)
error code: AttributeError at / 'list' object has no attribute '_meta'