#34397: Subclasses of JSONField call `get_prep_value` with field as value
-------------------------------------+-------------------------------------
     Reporter:  pheki                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 If I understand correctly, you have a custom `JSONField` with your own
 implementation of `get_prep_value()`. `JSONField` no longer use
 `get_prep_value()` in Django 4.2+ (see
 5c23d9f0c32f166c81ecb6f3f01d5077a6084318) so you check if it works for
 you, however, even if it doesn't, you can always implement your own
 expression and use it instead of `KeyTextTransform`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34397#comment:1>
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/01070186c7eb76d9-2388205c-7e16-464c-a9c6-a27a67fc37e0-000000%40eu-central-1.amazonses.com.

Reply via email to