#33641 closed New feature (needsinfo)
The many to many model does not use the full routing function
Reported by: | wang | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 4.0 |
Severity: | Normal | Keywords: | router |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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))
Change History (1)
comment:1 by , 3 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
Version 0, edited 3 years ago by (next)
Note:
See TracTickets
for help on using tickets.
Please follow the guidelines with regards to requesting features:
Maybe it's just me but I really don't understand that are you proposing.