Ticket #6753: 6753.docs.authentication.diff
File 6753.docs.authentication.diff, 858 bytes (added by , 17 years ago) |
---|
-
docs/authentication.txt
83 83 objects in the same way as any other `Django model`_:: 84 84 85 85 myuser.groups = [group_list] 86 myuser.groups.add(group, group, ...)87 myuser.groups.remove(group, group, ...)86 myuser.groups.add(group, group, ...) 87 myuser.groups.remove(group, group, ...) 88 88 myuser.groups.clear() 89 89 myuser.user_permissions = [permission_list] 90 90 myuser.user_permissions.add(permission, permission, ...) 91 myuser.user_permissions.remove(permission, permission, ... ]91 myuser.user_permissions.remove(permission, permission, ...) 92 92 myuser.user_permissions.clear() 93 93 94 94 In addition to those automatic API methods, ``User`` objects have the following