Opened 6 years ago

Closed 6 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: UI/UX:


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 Changed 6 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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').

comment:2 Changed 6 years ago by climbus

  • Resolution set to fixed
  • Status changed from new to closed

It seems it works on rc1.

Sorry for mess.

Note: See TracTickets for help on using tickets.
Back to Top