Fixed #9718 -- Removed a reference to oldforms FormWrapper object in the user authentication docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2008-12-08 05:27:04 +00:00
parent b76d7c1dec
commit ff3e1a7d40
1 changed files with 14 additions and 14 deletions

View File

@ -253,8 +253,8 @@ Manager functions
.. method:: models.UserManager.create_user(username, email, password=None) .. method:: models.UserManager.create_user(username, email, password=None)
Creates, saves and returns a :class:`~django.contrib.auth.models.User`. Creates, saves and returns a :class:`~django.contrib.auth.models.User`.
The :attr:`~django.contrib.auth.models.User.username`, The :attr:`~django.contrib.auth.models.User.username`,
:attr:`~django.contrib.auth.models.User.email` and :attr:`~django.contrib.auth.models.User.email` and
:attr:`~django.contrib.auth.models.User.password` are set as given, and the :attr:`~django.contrib.auth.models.User.password` are set as given, and the
:class:`~django.contrib.auth.models.User` gets ``is_active=True``. :class:`~django.contrib.auth.models.User` gets ``is_active=True``.
@ -360,11 +360,11 @@ Anonymous users
``False`` instead of ``True``. ``False`` instead of ``True``.
* :meth:`~django.contrib.auth.models.User.has_perm()` always returns ``False``. * :meth:`~django.contrib.auth.models.User.has_perm()` always returns ``False``.
* :meth:`~django.contrib.auth.models.User.set_password()`, * :meth:`~django.contrib.auth.models.User.set_password()`,
:meth:`~django.contrib.auth.models.User.check_password()`, :meth:`~django.contrib.auth.models.User.check_password()`,
:meth:`~django.contrib.auth.models.User.save()`, :meth:`~django.contrib.auth.models.User.save()`,
:meth:`~django.contrib.auth.models.User.delete()`, :meth:`~django.contrib.auth.models.User.delete()`,
:meth:`~django.contrib.auth.models.User.set_groups()` and :meth:`~django.contrib.auth.models.User.set_groups()` and
:meth:`~django.contrib.auth.models.User.set_permissions()` raise :meth:`~django.contrib.auth.models.User.set_permissions()` raise
:exc:`NotImplementedError`. :exc:`NotImplementedError`.
In practice, you probably won't need to use In practice, you probably won't need to use
@ -682,7 +682,7 @@ the following line to your URLconf::
* ``form``: A :class:`~django.forms.Form` object representing the * ``form``: A :class:`~django.forms.Form` object representing the
login form. See the :ref:`forms documentation <topics-forms-index>` login form. See the :ref:`forms documentation <topics-forms-index>`
for more on ``FormWrapper`` objects. for more on ``Form`` objects.
* ``next``: The URL to redirect to after successful login. This may contain * ``next``: The URL to redirect to after successful login. This may contain
a query string, too. a query string, too.
@ -691,7 +691,7 @@ the following line to your URLconf::
:class:`~django.contrib.sites.models.Site`, according to the :class:`~django.contrib.sites.models.Site`, according to the
:setting:`SITE_ID` setting. If you're using the Django development version :setting:`SITE_ID` setting. If you're using the Django development version
and you don't have the site framework installed, this will be set to the and you don't have the site framework installed, this will be set to the
value of ``request.META['SERVER_NAME']``. For more on sites, see value of ``request.META['SERVER_NAME']``. For more on sites, see
:ref:`ref-contrib-sites`. :ref:`ref-contrib-sites`.
If you'd prefer not to call the template :file:`registration/login.html`, If you'd prefer not to call the template :file:`registration/login.html`,
@ -1037,7 +1037,7 @@ Fields
fields: fields:
.. attribute:: models.Permission.name .. attribute:: models.Permission.name
Required. 50 characters or fewer. Example: ``'Can vote'``. Required. 50 characters or fewer. Example: ``'Can vote'``.
.. attribute:: models.Permission.content_type .. attribute:: models.Permission.content_type
@ -1046,7 +1046,7 @@ fields:
which contains a record for each installed Django model. which contains a record for each installed Django model.
.. attribute:: models.Permission.codename .. attribute:: models.Permission.codename
Required. 100 characters or fewer. Example: ``'can_vote'``. Required. 100 characters or fewer. Example: ``'can_vote'``.
Methods Methods
@ -1069,7 +1069,7 @@ The currently logged-in user and his/her permissions are made available in the
:setting:`TEMPLATE_CONTEXT_PROCESSORS` setting contains :setting:`TEMPLATE_CONTEXT_PROCESSORS` setting contains
``"django.core.context_processors.auth"``, which is default. For more, see ``"django.core.context_processors.auth"``, which is default. For more, see
the :ref:`RequestContext docs <subclassing-context-requestcontext>`. the :ref:`RequestContext docs <subclassing-context-requestcontext>`.
Users Users
----- -----
@ -1099,7 +1099,7 @@ in the ``foo`` app::
{{ perms.foo }} {{ perms.foo }}
Two-level-attribute lookup is a proxy to Two-level-attribute lookup is a proxy to
:meth:`User.has_perm <django.contrib.auth.models.User.has_perm>`. This example :meth:`User.has_perm <django.contrib.auth.models.User.has_perm>`. This example
would display ``True`` if the logged-in user had the permission would display ``True`` if the logged-in user had the permission
``foo.can_vote``:: ``foo.can_vote``::
@ -1153,7 +1153,7 @@ The API is simple:
To create a new message, use To create a new message, use
``user_obj.message_set.create(message='message_text')``. ``user_obj.message_set.create(message='message_text')``.
To retrieve/delete messages, use To retrieve/delete messages, use
:meth:`user_obj.get_and_delete_messages() <django.contrib.auth.models.User.get_and_delete_messages>`, :meth:`user_obj.get_and_delete_messages() <django.contrib.auth.models.User.get_and_delete_messages>`,
which returns a list of ``Message`` objects in the user's queue (if any) which returns a list of ``Message`` objects in the user's queue (if any)
@ -1313,7 +1313,7 @@ Custom auth backends can provide their own permissions.
The user model will delegate permission lookup functions The user model will delegate permission lookup functions
(:meth:`~django.contrib.auth.models.User.get_group_permissions()`, (:meth:`~django.contrib.auth.models.User.get_group_permissions()`,
:meth:`~django.contrib.auth.models.User.get_all_permissions()`, :meth:`~django.contrib.auth.models.User.get_all_permissions()`,
:meth:`~django.contrib.auth.models.User.has_perm()`, and :meth:`~django.contrib.auth.models.User.has_perm()`, and
:meth:`~django.contrib.auth.models.User.has_module_perms()`) to any :meth:`~django.contrib.auth.models.User.has_module_perms()`) to any
authentication backend that implements these functions. authentication backend that implements these functions.