diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-01-18 20:50:12 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-01-18 20:52:25 +0100 |
| commit | d90abcc9dad9b239e77aa67bfdd0c431072e2434 (patch) | |
| tree | e07b63a2fde4f9628b855423137c97809ed1b924 /docs | |
| parent | ab6ff2e0ac3a059c890d84a7a8b8f8646ddbbd4f (diff) | |
[1.5.x] Fixed #19632 -- Bug in code sample.
Thanks grossmanandy at bfusa com and Simon Charette.
Backport of 1dd7492.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/default.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 7255f28d42..12e8fc7d76 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -466,7 +466,7 @@ checks to make sure the user has an email in the desired domain:: from django.contrib.auth.decorators import user_passes_test def email_check(user): - return '@example.com' in request.user.email + return '@example.com' in user.email @user_passes_test(email_check) def my_view(request): |
