Opened 2 years ago
Closed 2 years ago
#34135 closed New feature (fixed)
Add async interface to ManyRelatedManager & RelatedManager
Reported by: | Jon Janzen | Owned by: | Jon Janzen |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | async |
Cc: | Carlton Gibson | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
With #34112 and #33646 combined, there is now an async interface for reading/writing Models in a lot of cases. One of the obvious places where that isn't true is in RelatedManager
instances. RelatedManager
instances are missing async versions of:
add
remove
clear
set
And this might be a separate ticket but the docs (1) are missing a reference to acreate
which according to dir()
exists on ManyRelatedManager
Change History (11)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
Description: | modified (diff) |
---|
comment:3 by , 2 years ago
Cc: | added |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → New feature |
Sounds reasonable.
comment:4 by , 2 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 2 years ago
Description: | modified (diff) |
---|
comment:7 by , 2 years ago
Patch needs improvement: | set |
---|
comment:9 by , 2 years ago
Replying to Bhuvnesh:
I would like to submit an improvement patch if not jon.
There is no need for a new patch.
comment:10 by , 2 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
FWIW I'm also willing to work on a PR for this ticket, assuming a similar solution to #34112.
(apologies if this ticket is not well-formed or I missed another ticket that covers the same topics)