summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-26 06:56:45 -0400
committerTim Graham <timograham@gmail.com>2014-06-30 14:32:50 -0400
commit24ba5f7fb26d8c668df8c16f5474d6c076e3e980 (patch)
treeace49f0463fd0a335d3c5059497bbda16b32fb1b /docs
parent43d7566cc90a01ddcfd4fa3b904ce93a6edd9291 (diff)
[1.7.x] Fixed docs/ref/contrib/auth.txt so that sphinx links work properly.
Backport of 5359188b08 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/auth.txt36
1 files changed, 20 insertions, 16 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index da9c69acdf..526eb402c6 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -307,18 +307,20 @@ Fields
:class:`~django.contrib.auth.models.Permission` objects have the following
fields:
-.. attribute:: name
+.. class:: models.Permission
+
+ .. attribute:: name
- Required. 50 characters or fewer. Example: ``'Can vote'``.
+ Required. 50 characters or fewer. Example: ``'Can vote'``.
-.. attribute:: content_type
+ .. attribute:: content_type
- Required. A reference to the ``django_content_type`` database table, which
- contains a record for each installed Django model.
+ Required. A reference to the ``django_content_type`` database table,
+ which contains a record for each installed model.
-.. attribute:: codename
+ .. attribute:: codename
- Required. 100 characters or fewer. Example: ``'can_vote'``.
+ Required. 100 characters or fewer. Example: ``'can_vote'``.
Methods
-------
@@ -336,19 +338,21 @@ Fields
:class:`~django.contrib.auth.models.Group` objects have the following fields:
-.. attribute:: name
+.. class:: models.Group
+
+ .. attribute:: name
- Required. 80 characters or fewer. Any characters are permitted. Example:
- ``'Awesome Users'``.
+ Required. 80 characters or fewer. Any characters are permitted. Example:
+ ``'Awesome Users'``.
-.. attribute:: permissions
+ .. attribute:: permissions
- Many-to-many field to :class:`~django.contrib.auth.models.Permission`::
+ Many-to-many field to :class:`~django.contrib.auth.models.Permission`::
- group.permissions = [permission_list]
- group.permissions.add(permission, permission, ...)
- group.permissions.remove(permission, permission, ...)
- group.permissions.clear()
+ group.permissions = [permission_list]
+ group.permissions.add(permission, permission, ...)
+ group.permissions.remove(permission, permission, ...)
+ group.permissions.clear()
.. _topics-auth-signals: