[Django] #34147: Add aall() for related managers.

12 views
Skip to first unread message

Django

unread,
Nov 9, 2022, 5:13:59 AM11/9/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz | Owner: nobody
Felisiak |
Type: New | Status: new
feature |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
`aall()` method (asynchronous versions of `all()`) should be available for
related managers:
{{{
AttributeError: 'RelatedManager' object has no attribute 'aall'
}}}

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

Django

unread,
Nov 9, 2022, 7:11:25 AM11/9/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Bhuvnesh
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(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
-------------------------------------+-------------------------------------
Changes (by Bhuvnesh):

* owner: nobody => Bhuvnesh
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34147#comment:1>

Django

unread,
Nov 9, 2022, 7:19:11 AM11/9/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Bhuvnesh
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(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 Bhuvnesh):

May i prepare a patch for this one?

--
Ticket URL: <https://code.djangoproject.com/ticket/34147#comment:2>

Django

unread,
Nov 9, 2022, 7:19:54 AM11/9/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Bhuvnesh
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/34147#comment:3>

Django

unread,
Nov 9, 2022, 7:42:30 AM11/9/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: (none)
Type: New feature | Status: new

Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bhuvnesh):

* owner: Bhuvnesh => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/34147#comment:4>

Django

unread,
Nov 11, 2022, 10:07:49 PM11/11/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: (none)
Type: New feature | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

Is there really a need for `aall()` given it doesn't perform any I/O but
solely copy objects over?

e.g. There is no `QuerySet.aall()` like there is no `.afilter` and no
`BaseManager.aall`?

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

Django

unread,
Nov 12, 2022, 9:15:54 AM11/12/22
to django-...@googlegroups.com
#34147: Add aall() for related managers.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: (none)
Type: New feature | Status: closed

Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid
* stage: Accepted => Unreviewed


Comment:

Replying to [comment:5 Simon Charette]:


> Is there really a need for `aall()` given it doesn't perform any I/O but
solely copy objects over?
>
> e.g. There is no `QuerySet.aall()` like there is no `.afilter` and no
`BaseManager.aall`?

Right 🤦 I withdraw my request.

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

Reply all
Reply to author
Forward
0 new messages