[Answered ]-Filter JSON data in TextField

2👍

id = 1
Inspection.objects.filter(data__icontains='"id": "{}"'.format(id))

try with above and use space after colon (:) symbol.

0👍

You can implement you own filter. Take a look at this article. You can write SQL query directly, and put it in custom filter.

👤gorros

Leave a comment