#13428 closed (fixed)
Multi-db router documentation example doesn't work as written.
Reported by: | Cliff Dyer | Owned by: | Cliff Dyer |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | multidb model documentation | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | allow_relation_example.diff added |
---|
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch to fix code example in multi-db documentation.