#27985: Converting `Foo.objects.filter(bar=None)` to an `IsNull` too early.
     Reporter:  Jarek Glowacki       |                    Owner:  Sergey
                                     |  Fedoseev
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  sql None NULL        |             Triage Stage:  Accepted
  transform                          |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0

Comment (by Simon Charette):

 Here's a PR implementing the `EmptyResultSet` approach that could be used
 in a 2.0 backport.


 I really think we should deprecating this path in 2.1+ though given the
 ambiguity of the lookup when `instance._state.adding`, I feel like this
 would be inline with the changes to prevent

Ticket URL: <https://code.djangoproject.com/ticket/27985#comment:12>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to