diff options
| author | Karol Majta | 2013-05-18 16:56:38 +0200 |
|---|---|---|
| committer | Karol Majta | 2013-05-18 16:56:38 +0200 |
| commit | 5bebd29f11dd9268b9a23c27cf58c8440664f5e9 (patch) | |
| tree | 66f75d176f8746432cf9083c0bdfe92a068e142f /docs/api-guide/relations.md | |
| parent | ebe959b52a10a88975b15c69275b0ef5c50cb9fa (diff) | |
| parent | 3f47eb7a77fcc735782dd1bf8e8e053e26417ea1 (diff) | |
| download | django-rest-framework-5bebd29f11dd9268b9a23c27cf58c8440664f5e9.tar.bz2 | |
Merge branch 'master' of git://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'docs/api-guide/relations.md')
| -rw-r--r-- | docs/api-guide/relations.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index 155c89de..99fe1083 100644 --- a/docs/api-guide/relations.md +++ b/docs/api-guide/relations.md @@ -381,6 +381,15 @@ Note that reverse generic keys, expressed using the `GenericRelation` field, can For more information see [the Django documentation on generic relations][generic-relations]. +## ManyToManyFields with a Through Model + +By default, relational fields that target a ``ManyToManyField`` with a +``through`` model specified are set to read-only. + +If you exlicitly specify a relational field pointing to a +``ManyToManyField`` with a through model, be sure to set ``read_only`` +to ``True``. + ## Advanced Hyperlinked fields If you have very specific requirements for the style of your hyperlinked relationships you can override `HyperlinkedRelatedField`. |
