diff options
| author | Timo Graham <timograham@gmail.com> | 2011-01-03 13:46:28 +0000 |
|---|---|---|
| committer | Timo Graham <timograham@gmail.com> | 2011-01-03 13:46:28 +0000 |
| commit | d41bd3f7f288300bb34a9a47ff44fd9bab0c1df0 (patch) | |
| tree | a7e5276dfecc80532eda7e70111103057669196b /docs | |
| parent | 07ef43082d20e6614cd96b821897bf812731daa7 (diff) | |
Fixed #14994 - Add attributes to example auth backend which would emit DeprecationWarning otherwise. Thanks kmike for the report and ojii for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index e750683705..e5f4bdb444 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -1537,6 +1537,11 @@ object the first time a user authenticates:: ADMIN_LOGIN = 'admin' ADMIN_PASSWORD = 'sha1$4e987$afbcf42e21bd417fb71db8c66b321e9fc33051de' """ + + supports_object_permissions = False + supports_anonymous_user = False + supports_inactive_user = False + def authenticate(self, username=None, password=None): login_valid = (settings.ADMIN_LOGIN == username) pwd_valid = check_password(password, settings.ADMIN_PASSWORD) |
