#32474: JSONField and register_default_jsonb all json column return as str
------------------------------------------------+------------------------
               Reporter:  koshak01              |          Owner:  (none)
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  contrib.postgres      |        Version:  3.1
               Severity:  Normal                |       Keywords:  jsonb
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 when i make select all json field as string

 # Register dummy loads() to avoid a round trip from psycopg2's decode
 # to json.dumps() to json.loads(), when using a custom decoder in
 # JSONField.
 psycopg2.extras.register_default_jsonb(conn_or_curs=connection,
 loads=lambda x: x)

 /Users/koshak01/Virtualenvs/virtual3.9/lib/python3.9/site-
 packages/django/db/backends/postgresql/base.py:206


 i make raw select request w/o ORM

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32474>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.a9e0ddb739f7ef3ff7cadbc58e4d4207%40djangoproject.com.

Reply via email to