[Answered ]-'QuerySet' object has no attribute '_meta', Django with ajax

1👍

Try like this

if artist_id:
   tattoos = tattoos.filter(artist__id=artist_id).values()
   return JsonResponse({'tattoos_by_artist': list(tattoos)}, status=200)

Leave a comment