Ticket #23314: 23314.diff

File 23314.diff, 1.4 KB (added by Tim Graham, 10 years ago)
  • docs/topics/auth/customizing.txt

    diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
    index 516ae06..2bf4b9b 100644
    a b different User model.  
    453453    :setting:`AUTH_USER_MODEL` setting in code that is executed at import
    454454    time. ``get_user_model()`` only works once Django has imported all models.
    455455
     456.. _specifying-custom-user-model:
     457
    456458Specifying a custom User model
    457459------------------------------
    458460
    Extending Django's default User  
    706708-------------------------------
    707709
    708710If you're entirely happy with Django's :class:`~django.contrib.auth.models.User`
    709 model and you just want to add some additional profile information, you can
     711model and you just want to add some additional profile information, you could
    710712simply subclass ``django.contrib.auth.models.AbstractUser`` and add your
    711 custom profile fields. This class provides the full implementation of the
    712 default :class:`~django.contrib.auth.models.User` as an :ref:`abstract model
     713custom profile fields, although we'd recommend a separate model as described in
     714the "Model design considerations" note of :ref:`specifying-custom-user-model`.
     715``AbstractUser`` provides the full implementation of the default
     716:class:`~django.contrib.auth.models.User` as an :ref:`abstract model
    713717<abstract-base-classes>`.
    714718
    715719.. _custom-users-and-the-built-in-auth-forms:
Back to Top