Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#12864 closed (fixed)

New users written to db_for_read

Reported by: haris@… Owned by: Russell Keith-Magee
Component: contrib.auth Version: 1.2-beta
Severity: Keywords: multidb
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


We're experiencing a problem where new users are being inserted into the wrong database.

UserManager.create_user is applying the using filter, which is causing the db_for_read DB to be selected.

I've attached a patch that fixes this.


Attachments (1)

patch.diff (461 bytes) - added by anonymous 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by anonymous

Attachment: patch.diff added

comment:1 Changed 7 years ago by Russell Keith-Magee

milestone: 1.2
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Russell Keith-Magee

Owner: changed from nobody to Russell Keith-Magee
Status: newassigned

comment:3 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: assignedclosed

(In [12488]) Fixed #12864 -- Corrected handling of new user creation when a multi-database router is in place. Thanks to haris@… for the report.

comment:4 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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