I am facing a problem while filtering a record from the database. In my database I have records which contain a dictfield.
for eg region is a dictionary which contains other dictionaries like
region = {'eastus': {'percentage_change': 0}, 'westus': {'percentage_change': 0}}
and I want to fetch eastus
or westus
.
I have tried something like this, but I am getting an empty list.
MyModel.objects.filter(region__eq='eastus')
any suggestions for this problem?