summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDan Watson <dcwatson@gmail.com>2015-04-02 12:52:45 -0400
committerTim Graham <timograham@gmail.com>2015-05-05 12:03:48 -0400
commitfe914341c83b37fd6aa8fd85620cf49dd2328ab0 (patch)
treedebd94a1afa0ac1749bb795c37c73ebbc435ac35 /docs
parent7b05d2fdaed582662d8f79130932f600f4f966a0 (diff)
Fixed #24564 -- Moved AbstractBaseUser and BaseUserManager so they can be used without auth in INSTALLED_APPS
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.9.txt6
-rw-r--r--docs/topics/auth/customizing.txt10
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index cceb0611b5..513177fff2 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -59,6 +59,12 @@ Minor features
* The ``BCryptSHA256PasswordHasher`` will now update passwords if its
``rounds`` attribute is changed.
+* ``AbstractBaseUser`` and ``BaseUserManager`` were moved to a new
+ ``django.contrib.auth.base_user`` module so that they can be imported without
+ including ``django.contrib.auth`` in :setting:`INSTALLED_APPS` (this raised
+ a deprecation warning in older versions and is no longer supported in
+ Django 1.9).
+
:mod:`django.contrib.gis`
^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
index cc7a326c23..9ca2e72b2d 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -586,6 +586,16 @@ password resets. You must then provide some key implementation details:
identifies the user in an informal way. It may also return the same
value as :meth:`django.contrib.auth.models.User.get_full_name()`.
+ .. admonition:: Importing ``AbstractBaseUser``
+
+ .. versionadded:: 1.9
+
+ ``AbstractBaseUser`` and ``BaseUserManager`` are importable from
+ ``django.contrib.auth.base_user`` so that they can be imported without
+ including ``django.contrib.auth`` in :setting:`INSTALLED_APPS` (this
+ raised a deprecation warning in older versions and is no longer
+ supported in Django 1.9).
+
The following methods are available on any subclass of
:class:`~django.contrib.auth.models.AbstractBaseUser`: