Cleaned up some small formatting in docs/authentication.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-06-02 18:06:41 +00:00
parent 688cd55708
commit 674773bb90
1 changed files with 8 additions and 8 deletions

View File

@ -82,14 +82,14 @@ Methods
``user_permissions``. ``User`` objects can access their related ``user_permissions``. ``User`` objects can access their related
objects in the same way as any other `Django model`_:: objects in the same way as any other `Django model`_::
``myuser.objects.groups = [group_list]`` myuser.objects.groups = [group_list]
``myuser.objects.groups.add(group, group,...)`` myuser.objects.groups.add(group, group,...)
``myuser.objects.groups.remove(group, group,...)`` myuser.objects.groups.remove(group, group,...)
``myuser.objects.groups.clear()`` myuser.objects.groups.clear()
``myuser.objects.permissions = [permission_list]`` myuser.objects.permissions = [permission_list]
``myuser.objects.permissions.add(permission, permission, ...)`` myuser.objects.permissions.add(permission, permission, ...)
``myuser.objects.permissions.remove(permission, permission, ...]`` myuser.objects.permissions.remove(permission, permission, ...]
``myuser.objects.permissions.clear()`` myuser.objects.permissions.clear()
In addition to those automatic API methods, ``User`` objects have the following In addition to those automatic API methods, ``User`` objects have the following
custom methods: custom methods: