Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #3039: corrected example code in authentication.txt. Thanks, Ub…

…ernostrum.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ee9deca37193d24efe33760abd86310cd26f041d 1 parent 21860fe
@jacobian jacobian authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/authentication.txt
View
8 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:
Please sign in to comment.
Something went wrong with that request. Please try again.