#31324: Filter JSONField using `=None`
-------------------------------------+-------------------------------------
     Reporter:  Nikolay Tretyak      |                    Owner:  Nikolay
                                     |  Tretyak
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  2.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * stage:  Unreviewed => Accepted


Comment:

 I think that could be a 2.1 regression caused by fixing #25718
 (c979c0a2b8abca325a549961fd7a17bdc36bcb1f).

 It looks like it could qualify for a data loss bug because
 `Model.objects.filter(json_field=None).update(field=value)` would be a
 noop starting for `Model.json_field = None` instances.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31324#comment:4>
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/067.9289e1a2cd5963557a0d5e12a5f2c131%40djangoproject.com.

Reply via email to