[Django] #33641: The many to many model does not use the full routing function

4 views
Skip to first unread message

Django

unread,
Apr 13, 2022, 6:57:59 AM4/13/22
to django-...@googlegroups.com
#33641: The many to many model does not use the full routing function
-------------------------------------+-------------------------------------
Reporter: HPCMGM | Owner: nobody
Type: New | Status: new
feature |
Component: Database | Version: 4.0
layer (models, ORM) |
Severity: Normal | Keywords: router
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In the many to many model, read-write separation is not supported

file: django/db/models/fields/related_descriptors.py
lines: 744, 1000

changed:
744: old_objs = set(self.using(router.db_for_read(self.model)).all())
1000: old_ids =
set(self.using(router.db_for_read(self.model)).values_list(self.target_field.target_field.attname,
flat=True))

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

Django

unread,
Apr 13, 2022, 7:10:33 AM4/13/22
to django-...@googlegroups.com
#33641: The many to many model does not use the full routing function
-------------------------------------+-------------------------------------
Reporter: wang | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 4.0
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: router | 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: => needsinfo


Comment:

Please [https://docs.djangoproject.com/en/stable/internals/contributing
/bugs-and-features/#requesting-features follow the guidelines with regards
to requesting features]:

> ''"Describe clearly and concisely what the missing feature is and how
you’d like to see it implemented."''

Maybe it's just me but I really don't understand that are you proposing.

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

Reply all
Reply to author
Forward
0 new messages