#31251: QuerySet.annotate() crashes when grouping by OuterRef(). -------------------------------------+------------------------------------- Reporter: Oliver Ford | Owner: Yuri Type: | Savin Cleanup/optimization | Status: assigned Component: Database layer | Version: master (models, ORM) | Severity: Normal | Resolution: Keywords: db,outerref,group | Triage Stage: Accepted by,subquery,annotate | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Oliver Ford): Why not the column that `OuterRef` is referencing? That was my intended behaviour, though I eventually realised I was overcomplicating it and just needed to group on the column directly, not an outer ref, and filter on the outer ref. -- Ticket URL: <https://code.djangoproject.com/ticket/31251#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.ea00889d681afc650d4dcf004eb62ef9%40djangoproject.com.