diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-10-23 19:30:23 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-10-23 19:30:23 +0000 |
| commit | 7098664940567c772a45ad98f9ee936063a1102e (patch) | |
| tree | ab05ffcfc60d36e29ce2134c1013654bb719da75 /docs/topics/auth.txt | |
| parent | 8be1bb2268b09e5ea33ccf07d602feed8b075146 (diff) | |
Removed mentions of Python 2.3 support from the docs -- Django 1.2 drops support for Python 2.3 -- and added a quick FAQ about that dropping of support.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/auth.txt')
| -rw-r--r-- | docs/topics/auth.txt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 152246d38c..c16bd3d183 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -1046,15 +1046,7 @@ checks to make sure the user is logged in and has the permission optional ``login_url`` argument, which lets you specify the URL for your login page (:setting:`settings.LOGIN_URL <LOGIN_URL>` by default). - Example in Python 2.3 syntax:: - - from django.contrib.auth.decorators import user_passes_test - - def my_view(request): - # ... - my_view = user_passes_test(lambda u: u.has_perm('polls.can_vote'), login_url='/login/')(my_view) - - Example in Python 2.4 syntax:: + For example:: from django.contrib.auth.decorators import user_passes_test |
