1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Improved error handling and docs for get_user_model()

This commit is contained in:
Russell Keith-Magee
2012-09-23 15:28:57 +08:00
parent 0229209c84
commit 98aba856b5
3 changed files with 30 additions and 2 deletions

View File

@@ -1791,7 +1791,7 @@ different User model.
Instead of referring to :class:`~django.contrib.auth.models.User` directly,
you should reference the user model using
:meth:`~django.contrib.auth.get_user_model()`. This method will return the
:func:`django.contrib.auth.get_user_model()`. This method will return the
currently active User model -- the custom User model if one is specified, or
:class:`~django.contrib.auth.User` otherwise.