diff options
| author | Ben Konrath <ben@bagu.org> | 2013-02-24 15:43:56 +0100 |
|---|---|---|
| committer | Preston Holmes <preston@ptone.com> | 2013-02-24 07:55:38 -0800 |
| commit | d5462596478992075fd04705fedd6a3cca49fae8 (patch) | |
| tree | 520d4083db4ad1a0b50ec1cfa6614de47377f8f6 | |
| parent | 8503120c1024ad7ec2151196a743d6daec21334b (diff) | |
Fixed #19394 --Added note about auth forms and custom user models.
| -rw-r--r-- | docs/topics/auth/customizing.txt | 2 | ||||
| -rw-r--r-- | docs/topics/auth/default.txt | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 204c11765c..85124181c6 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -674,6 +674,8 @@ custom profile fields. This class provides the full implementation of the default :class:`~django.contrib.auth.models.User` as an :ref:`abstract model <abstract-base-classes>`. +.. _custom-users-and-the-built-in-auth-forms: + Custom users and the built-in auth forms ---------------------------------------- diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index d82731f73b..a38ee84841 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -926,6 +926,14 @@ If you don't want to use the built-in views, but want the convenience of not having to write forms for this functionality, the authentication system provides several built-in forms located in :mod:`django.contrib.auth.forms`: +.. note:: + The built-in authentication forms make certain assumptions about the user + model that they are working with. If you're using a :ref:`custom User model + <auth-custom-user>`, it may be necessary to define your own forms for the + authentication system. For more information, refer to the documentation + about :ref:`using the built-in authentication forms with custom user models + <custom-users-and-the-built-in-auth-forms>`. + .. class:: AdminPasswordChangeForm A form used in the admin interface to change a user's password. |
