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

This commit is contained in:
Tim Graham 2014-06-26 06:56:45 -04:00
parent fd5897193f
commit 5359188b08
1 changed files with 20 additions and 16 deletions

View File

@ -296,16 +296,18 @@ 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'``.
.. 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'``.
@ -325,12 +327,14 @@ 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'``.
.. attribute:: permissions
.. attribute:: permissions
Many-to-many field to :class:`~django.contrib.auth.models.Permission`::