[django/django] 01ae88: Don't hard-code class names when calling static me...

0 views
Skip to first unread message

GitHub

unread,
May 31, 2013, 3:56:58 AM5/31/13
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 01ae881bb4d13d6fe1b77f8758cc0bc72786cfaa
https://github.com/django/django/commit/01ae881bb4d13d6fe1b77f8758cc0bc72786cfaa
Author: Gavin Wahl <gw...@fusionbox.com>
Date: 2013-05-29 (Wed, 29 May 2013)

Changed paths:
M django/contrib/auth/models.py
M django/contrib/auth/tests/test_custom_user.py
M docs/topics/auth/customizing.txt

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

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.


Commit: 3d883e8bd96df8f2166aec6331b80781463539a6
https://github.com/django/django/commit/3d883e8bd96df8f2166aec6331b80781463539a6
Author: Claude Paroz <cla...@2xlibre.net>
Date: 2013-05-31 (Fri, 31 May 2013)

Changed paths:
M django/contrib/auth/models.py
M django/contrib/auth/tests/test_custom_user.py
M docs/topics/auth/customizing.txt

Log Message:
-----------
Merge pull request #1232 from fusionbox/normalize_email

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


Compare: https://github.com/django/django/compare/728d3fe1bac6...3d883e8bd96d
Reply all
Reply to author
Forward
0 new messages