Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20531 closed Cleanup/optimization (fixed)

Don't hard-code class names when calling static methods

Reported by: gwahl@… Owned by: nobody
Component: contrib.auth Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

UserManager.normalize_email should be called on the instance, not the class. This has the same effect normally but is more helpful to subclassers. When methods are called directly on the class, subclasses can't override them.

Pull request: https://github.com/django/django/pull/1232

Change History (2)

comment:1 by Claude Paroz <claude@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 3d883e8bd96df8f2166aec6331b80781463539a6:

Merge pull request #1232 from fusionbox/normalize_email

Fixed #20531 -- Don't hard-code class names when calling static methods

comment:2 by Claude Paroz, 11 years ago

Component: Uncategorizedcontrib.auth
Triage Stage: UnreviewedReady for checkin
Type: UncategorizedCleanup/optimization
Note: See TracTickets for help on using tickets.
Back to Top