Opened 6 years ago

Closed 6 years ago

Last modified 4 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:

Description

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.

Thanks,
Haris

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by anonymous

comment:1 Changed 6 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 6 years ago by russellm

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

comment:3 Changed 6 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 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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