I have a model with a JSONField. The JSON field contains a title that I'd like to use to identify the object. Obviously, I can just use a loop, checking if each object contains the title I'm looking for. But I was wondering if there was a more pythonic way to do it. Something like this:
myObj = MyModel.objects.get(myjson__title='Title')
The above code doesn't work, obviously. But is there an approach that can be taken without using a loop?