From 85f4b13804fd9a4a0ba0c58e687f51a8a79a9fb3 Mon Sep 17 00:00:00 2001 From: Joseph Kocherhans Date: Fri, 21 Apr 2006 21:54:15 +0000 Subject: [PATCH] magic-removal: fixed a few more references to django.models in docs/authentication.txt git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2724 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/authentication.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/authentication.txt b/docs/authentication.txt index db116ae1ab..92b9115703 100644 --- a/docs/authentication.txt +++ b/docs/authentication.txt @@ -114,7 +114,7 @@ methods: `DEFAULT_FROM_EMAIL`_ setting. * ``get_profile()`` -- Returns a site-specific profile for this user. - Raises ``django.models.auth.SiteProfileNotAvailable`` if the current site + Raises ``django.contrib.auth.models.SiteProfileNotAvailable`` if the current site doesn't allow profiles. .. _Django model: http://www.djangoproject.com/documentation/model_api/ @@ -191,7 +191,7 @@ Anonymous users --------------- ``django.contrib.auth.models.AnonymousUser`` is a class that implements -the ``django.models.auth.users.User`` interface, with these differences: +the ``django.contirb.auth.models.User`` interface, with these differences: * ``id`` is always ``None``. * ``is_anonymous()`` returns ``True`` instead of ``False``. @@ -231,8 +231,8 @@ How to log a user in To log a user in, do the following within a view:: - from django.models.auth import users - request.session[users.SESSION_KEY] = some_user.id + from django.contrib.auth.models import SESSION_KEY + request.session[SESSION_KEY] = some_user.id Because this uses sessions, you'll need to make sure you have ``SessionMiddleware`` enabled. See the `session documentation`_ for more