diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-09-22 11:07:35 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-09-22 11:07:35 +0000 |
| commit | 54f962c0bf3cf4802ee2c94194bcdb4bd4728106 (patch) | |
| tree | e799058e59dd9ea2fbee07e6ad03cdb166f95c2a /docs/ref/models | |
| parent | 5563362c4c86d1c519bfa4732fed050c232e366a (diff) | |
Fixed #8967: Added documentation for the 'through' option on a many-to-many field in the fields reference documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 9c5fd23a36..ac1e2ffffb 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -887,6 +887,17 @@ that control how the relationship functions. add the descriptor for the reverse relationship, allowing :class:`ManyToManyField` relationships to be non-symmetrical. +.. attribute:: ManyToManyFields.through + + Django will automatically generate a table to manage many-to-many + relationships. However, if you want to manually specify the intermediary + table, you can use the :attr:`~ManyToManyField.through` option to specify + the Django model that represents the intermediate table that you want to + use. + + The most common use for this option is when you want to associate + :ref:`extra data with a many-to-many relationship <intermediary-manytomany>`. + .. attribute:: ManyToManyField.db_table The name of the table to create for storing the many-to-many data. If this |
