Opened 15 years ago
Closed 15 years ago
#13482 closed (fixed)
multidb and RelatedManager
Reported by: | climbus | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.2-beta |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have master/slave database configuration. Slave is protected by only SELECT privileges. I'm getting User object and trying to create message:
u.message_set.create(message="some message")
Django is trying to write to slave database because it gets db from User object which is from slave database. Django ignores router settings.
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It seems it works on rc1.
Sorry for mess.
Note:
See TracTickets
for help on using tickets.
If you are really using 1.2 beta?. In that case please retry with the current trunk status (RC1 has been just tagged), this could be related to #13250/r12895.
As a general rule, if you are using a pre-release tag/bundle like a beta of some project and find a problem with it, it is always a good idea to test with the latest revision and confirm it still shows before reporting it to the project ticket tracker. This way wou can save time (yours andproject developers').