summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2007-02-27 00:16:40 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2007-02-27 00:16:40 +0000
commitee9deca37193d24efe33760abd86310cd26f041d (patch)
treefc763db8d510fc89d034cad6b6076b93849c2a24 /docs
parent21860fe23ae4b7923c5c92f75a79f272cc6ab103 (diff)
Fixed #3039: corrected example code in authentication.txt. Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/authentication.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/authentication.txt b/docs/authentication.txt
index f5736a3cd7..5186c5672c 100644
--- a/docs/authentication.txt
+++ b/docs/authentication.txt
@@ -86,10 +86,10 @@ objects in the same way as any other `Django model`_::
myuser.groups.add(group, group,...)
myuser.groups.remove(group, group,...)
myuser.groups.clear()
- myuser.permissions = [permission_list]
- myuser.permissions.add(permission, permission, ...)
- myuser.permissions.remove(permission, permission, ...]
- myuser.permissions.clear()
+ myuser.user_permissions = [permission_list]
+ myuser.user_permissions.add(permission, permission, ...)
+ myuser.user_permissions.remove(permission, permission, ...]
+ myuser.user_permissions.clear()
In addition to those automatic API methods, ``User`` objects have the following
custom methods: