summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGavin Wahl <gwahl@fusionbox.com>2013-05-29 16:11:26 -0600
committerGavin Wahl <gwahl@fusionbox.com>2013-05-29 16:11:26 -0600
commit01ae881bb4d13d6fe1b77f8758cc0bc72786cfaa (patch)
treeb7624718818a81ac117a5663747b8cd3e4d372ce /docs
parent1fdc3d256d5d515bd0b4646ad57f231a2359e0cd (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/customizing.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
index 9a8bab947c..bc021b14ad 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -939,7 +939,7 @@ authentication app::
raise ValueError('Users must have an email address')
user = self.model(
- email=MyUserManager.normalize_email(email),
+ email=self.normalize_email(email),
date_of_birth=date_of_birth,
)