Multi-db router documentation example doesn't work as written.
|Reported by:||jcd||Owned by:||jcd|
|Severity:||Keywords:||multidb model documentation|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The MasterSlaveRouter.allow_relation example method documented in /docs/topics/db/multi-db.txt doesn't work as written. It checks if a model instance is in a list of strings representing the names of the various databases. It should check obj._state.db on each of those objects rather than checking obj directly.
Change History (4)
Changed 4 years ago by jcd
comment:1 Changed 4 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted