1
0
mirror of https://github.com/django/django.git synced 2025-07-06 10:49:17 +00:00

[1.3.X] Fixed #15827 - Documented that OneToOneField in Profile should be named 'user'; thanks lawgon.

Backport of r16155 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Timo Graham 2011-05-04 23:44:54 +00:00
parent 53354f80f6
commit 64e625b6a1

View File

@ -476,8 +476,8 @@ profile" -- for this purpose.
To make use of this feature, define a model with fields for the To make use of this feature, define a model with fields for the
additional information you'd like to store, or additional methods additional information you'd like to store, or additional methods
you'd like to have available, and also add a you'd like to have available, and also add a
:class:`~django.db.models.Field.OneToOneField` from your model to the :class:`~django.db.models.Field.OneToOneField` named ``user`` from your model
:class:`~django.contrib.auth.models.User` model. This will ensure only to the :class:`~django.contrib.auth.models.User` model. This will ensure only
one instance of your model can be created for each one instance of your model can be created for each
:class:`~django.contrib.auth.models.User`. :class:`~django.contrib.auth.models.User`.