Closed zzart closed 10 years ago
Is there a way to query ranges in jsonb? ie
Something.object.bulk_create([ ... Something(data={"price": 100}), ... Something(data={"price": 200}) ... ]) Something.objects.filter(data__at_price__lt=200)
Got it , thanks for pgjson anyway!
Something.objects.extra(where=["data->'price' > '100'","data->'price' < '200'"])
Is there a way to query ranges in jsonb? ie