Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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 Mariusz Felisiak, 3 years ago

Resolution: needsinfo
Status: newclosed

Please 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 what are you proposing.

Last edited 3 years ago by Mariusz Felisiak (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top