Ticket #15827: auth.txt.diff

File auth.txt.diff, 974 bytes (added by Kenneth Gonsalves, 14 years ago)

diff for patch

  • django-mine/docs/topics/auth.txt

     
    479479:class:`~django.db.models.Field.OneToOneField` from your model to the
    480480:class:`~django.contrib.auth.models.User` model. This will ensure only
    481481one instance of your model can be created for each
    482 :class:`~django.contrib.auth.models.User`.
     482:class:`~django.contrib.auth.models.User`. The OneToOneField should be
     483named 'user' for this to work.
    483484
    484485To indicate that this model is the user profile model for a given site, fill in
    485486the setting :setting:`AUTH_PROFILE_MODULE` with a string consisting of the
     
    497498be::
    498499
    499500    AUTH_PROFILE_MODULE = 'accounts.UserProfile'
     501   
    500502
    501503When a user profile model has been defined and specified in this manner, each
    502504:class:`~django.contrib.auth.models.User` object will have a method --
Back to Top