Permalink
Browse files

Fixed docs/ref/contrib/auth.txt so that sphinx links work properly.

  • Loading branch information...
timgraham committed Jun 26, 2014
1 parent fd58971 commit 5359188b0802f39201a6ce45a08391597c8174bb
Showing with 20 additions and 16 deletions.
  1. +20 −16 docs/ref/contrib/auth.txt
View
@@ -296,18 +296,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
-------
@@ -325,19 +327,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:

0 comments on commit 5359188

Please sign in to comment.