summaryrefslogtreecommitdiff
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:59 -0400
commit6d0acc344fe8105c32aaf892d84ae7e200d90cfa (patch)
tree25daaee54b1aaa05a378f6fe8329b1b50d41de9a
parent90b4d205662c4859a94e0456f22123e7bdf463f4 (diff)
[1.6.x] Fixed docs/ref/contrib/auth.txt so that sphinx links work properly.
Backport of 5359188b08 from master
-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 6474b05ad9..244eb79cd5 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -319,18 +319,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
-------
@@ -348,19 +350,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: