diff options
| author | Akis Kesoglou <akis@radial.gr> | 2014-03-07 13:56:28 +0200 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2014-03-11 19:33:04 -0300 |
| commit | aaad3e27ac7cfcbbfeac6353d17d27e8da523cc8 (patch) | |
| tree | 551dcf8b74b5fd3b00ee8b0b0b306baf8f305b84 /docs/topics | |
| parent | f4d91638fc4ab126ee9a269552511f5963ee61b4 (diff) | |
Fixed #22217 - ManyToManyField.through_fields fixes.
- Docs description of arguments mix up.
- Keep it from erroneously masking E332 check.
- Add checks E338 and E339, tweak message of E337.
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/db/models.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index 4caf9ad736..d5a700f62e 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -440,12 +440,12 @@ explicit declaration defines how the two models are related. There are a few restrictions on the intermediate model: * Your intermediate model must contain one - and *only* one - foreign key - to the target model (this would be ``Person`` in our example), or you must + to the source model (this would be ``Group`` in our example), or you must explicitly specify the foreign keys Django should use for the relationship using :attr:`ManyToManyField.through_fields <ManyToManyField.through_fields>`. If you have more than one foreign key and ``through_fields`` is not specified, a validation error will be raised. A similar restriction applies - to the foreign key to the source model (this would be ``Group`` in our + to the foreign key to the target model (this would be ``Person`` in our example). * For a model which has a many-to-many relationship to itself through an |
