Django JSONField - a PostgreSQL specific field Querying data nested in dictionaries


Example

Get all ice cream cones that were ordered by people liking chocolate:

IceCream.objects.filter(metadata__buyer__favorite_flavor='chocolate')

See the note in the "Remarks" section about chaining queries.