Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#12864 closed (fixed)

New users written to db_for_read

Reported by: haris@… Owned by: russellm
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 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by anonymous

comment:1 Changed 4 years ago by russellm

  • milestone set to 1.2
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by russellm

  • Owner changed from nobody to russellm
  • Status changed from new to assigned

comment:3 Changed 4 years ago by russellm

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

(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 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.