#32043: OuterRef with possible NULL generates value = NULL instead of value IS
NULL
in COUNT() group by.
-------------------------------------+-------------------------------------
Reporter: idobrodushniy | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer | Version: 2.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: OuterRef, ORM, SQL, | Triage Stage:
Subquery | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Denis Verbin):
* status: closed => new
* resolution: needsinfo =>
Comment:
Hi Simon, thanks for the idea, but it isn't working with Django 3.2.4,
filtering by annotated 'outer_category_id' in the subquery raises an error
{{{
AttributeError: 'ResolvedOuterRef' object has no attribute 'get_lookup'
}}}
category_id is an annotated value in the inner query in my case.
Probably this is a bug?
--
Ticket URL: <https://code.djangoproject.com/ticket/32043#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/071.6683ed86873fb86fd23980ad4c98402e%40djangoproject.com.