#32651: Combining Q with a Q containing Exists crashes
-------------------------------------+-------------------------------------
Reporter: Jaap Roes | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
Replying to [ticket:32651 Jaap Roes]:
> I'm in the process of upgrading a project from Django 3.1 to 3.2 and one
of the tests keeps crashing. I reduced the code to the following
statement:
>
> {{{
> Q() & Q(Exists(Book.objects.all()))
> }}}
>
> This worked correctly in Django 3.1.
>
> I found this ticket: #32548 and can confirm (that after some struggles
related to incompatibilities in 3rd party packges) I was able to get the
tests to pass on Django main. Is it possible to backport the fix to Django
3.2?
Thanks I didn't notice that it's a regression in
466920f6d726eee90d5566e0a9948e92b33a122e (backported in
0e2979e95d0f68f28c92c84c14655e7510d4e789). I will prepare a backport to
Django 3.2.
Let's close it as a duplicate of #32548.
--
Ticket URL: <https://code.djangoproject.com/ticket/32651#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/063.e83f6084326e7c41f95d95c61d893e65%40djangoproject.com.