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 , 11 years ago
Version: | 1.6 → master |
---|
comment:2 by , 11 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #19353