#34254: Exists annotations can return non-boolean results (i.e. None) if used 
with
an empty QuerySet.
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:
                                     |  rajdesai24
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  Exists               |             Triage Stage:  Ready for
  EmptyQuerySet sqlite postgres      |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"f210ad1b980a40345ab66b2f0c4f5b9610eb07ac" f210ad1b]:
 {{{
 #!CommitTicketReference repository=""
 revision="f210ad1b980a40345ab66b2f0c4f5b9610eb07ac"
 [4.2.x] Fixed #34254 -- Fixed return value of Exists() with empty
 queryset.

 Thanks Simon Charette for reviews.

 Backport of 246eb4836a6fb967880f838aa0d22ecfdca8b6f1 from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34254#comment:15>
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/01070185ef8afa91-6a47cc1e-4ad1-4f1c-a21a-5f68002d6ac8-000000%40eu-central-1.amazonses.com.

Reply via email to