Re: [Django] #36066: Document that Q objects can be used directly in annotations

36 views
Skip to first unread message

Django

unread,
Jan 6, 2025, 7:42:07 AM1/6/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Lufafa
Type: | Joshua
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Lufafa Joshua):

* owner: (none) => Lufafa Joshua
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 8, 2025, 8:16:39 AM1/8/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Lufafa
Type: | Joshua
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Lufafa Joshua):

[https://github.com/django/django/pull/19016 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:4>

Django

unread,
Jan 24, 2025, 7:51:14 AM1/24/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Lufafa
Type: | Joshua
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Andrew Graham-Yooll):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:5>

Django

unread,
Jan 30, 2025, 11:08:00 AM1/30/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Lufafa
Type: | Joshua
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:6>

Django

unread,
Mar 1, 2025, 6:45:20 PM3/1/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Lufafa
Type: | Joshua
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Samruddhi Dharankar):

Hi, I'm not sure if work is still being done on this. But I submitted a
[https://github.com/django/django/pull/19219 PR] for the requested
changes.
--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:7>

Django

unread,
Mar 10, 2025, 4:36:27 AM3/10/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Samruddhi
Type: | Dharankar
Cleanup/optimization | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 1 => 0
* owner: Lufafa Joshua => Samruddhi Dharankar
* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:8>

Django

unread,
Mar 10, 2025, 7:54:32 AM3/10/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Samruddhi
Type: | Dharankar
Cleanup/optimization | Status: closed
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"9120a19c4ecb643111b073dd1069e6b410a03c23" 9120a19]:
{{{#!CommitTicketReference repository=""
revision="9120a19c4ecb643111b073dd1069e6b410a03c23"
Fixed #36066 -- Documented that Q objects can be used directly in
annotations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:9>

Django

unread,
Mar 10, 2025, 7:56:33 AM3/10/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Samruddhi
Type: | Dharankar
Cleanup/optimization | Status: closed
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"930d9c2fd9755ac5a5fd6c826a3606590e0c48d5" 930d9c2]:
{{{#!CommitTicketReference repository=""
revision="930d9c2fd9755ac5a5fd6c826a3606590e0c48d5"
[5.2.x] Fixed #36066 -- Documented that Q objects can be used directly in
annotations.

Backport of 9120a19c4ecb643111b073dd1069e6b410a03c23 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:10>

Django

unread,
Mar 10, 2025, 7:58:20 AM3/10/25
to django-...@googlegroups.com
#36066: Document that Q objects can be used directly in annotations
-------------------------------------+-------------------------------------
Reporter: Laurent Bergeron | Owner: Samruddhi
Type: | Dharankar
Cleanup/optimization | Status: closed
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: documentation | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"ccd5867ae6115490a92dd51eead5c2b4e5c3b83a" ccd5867a]:
{{{#!CommitTicketReference repository=""
revision="ccd5867ae6115490a92dd51eead5c2b4e5c3b83a"
[5.1.x] Fixed #36066 -- Documented that Q objects can be used directly in
annotations.

Backport of 9120a19c4ecb643111b073dd1069e6b410a03c23 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36066#comment:11>
Reply all
Reply to author
Forward
0 new messages