Opened 11 years ago

Closed 11 years ago

#22548 closed Cleanup/optimization (duplicate)

some forms in contrib.auth.forms don't use `get_user_model`

Reported by: Flavio Curella Owned by: nobody
Component: contrib.auth Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

some forms django.contrib.auth.forms are hardcoded to use the user model in django.contrib.auth.models.User, when they could easily infer the right user model via django.contrib.auth.get_user_model.

This way it should be easier to reuse them with Custom User models.

Pull request is at https://github.com/django/django/pull/2618/files

Change History (2)

comment:1 by Flavio Curella, 11 years ago

Version: 1.6master

comment:2 by Tim Graham, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #19353

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