Re: How to make queries using Mysql JSON field and django 2

2018-05-12 Thread Jason
the default jsonfield field type for django is postgres only, but there's support for mysql 5.7 via a third party package https://github.com/adamchainz/django-mysql. specifically https://django-mysql.readthedocs.io/en/latest/model_fields/json_field.html On Friday, May 11, 2018 at 3:30:42 PM UT

How to make queries using Mysql JSON field and django 2

2018-05-11 Thread Mark Phillips
I have a model Document that has a json field "metadata" containing a dictionary of different values. One example: {"Orientation": "Landscape", "Address": "Bethany Home Road", "Photo Type": "Many People", "a boolean": false, "Person": ["Sam Smith", "Hank Jones"], "Date": "05/13/2018", "Location":