For some reason get_prep_value() on django.contrib.postgres.fields.jsonb.JSONField returns a psycopg2 object (serializing to a string), whereas the direct value is a Python object tree. The more intuitive approach is to return the JSON as an integrated part of the tree, instead of a string containing JSON.
Coverage remained the same at 90.104% when pulling c7b478f6dc230907e5dd391980bec79e6a0920a6 on scottp-dpaw:master into c1cd3432cad63cc45bcadc251c2694fc8c907162 on bruth:master.
Coverage remained the same at 90.104% when pulling c7b478f6dc230907e5dd391980bec79e6a0920a6 on scottp-dpaw:master into c1cd3432cad63cc45bcadc251c2694fc8c907162 on bruth:master.
For some reason get_prep_value() on django.contrib.postgres.fields.jsonb.JSONField returns a psycopg2 object (serializing to a string), whereas the direct value is a Python object tree. The more intuitive approach is to return the JSON as an integrated part of the tree, instead of a string containing JSON.