diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-09-08 13:57:49 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-09 12:07:59 +0200 |
| commit | 0a28b42b1510b8093a90718bafd7627ed67fa13b (patch) | |
| tree | dd8eb67d6e06b95d251a6aaeba6e54bf90f2f8e0 /docs | |
| parent | 46c8df640cfed5dd525ac1bcf5ad7e57b7ff2571 (diff) | |
Fixed #33084 -- Removed incorrect system check for ManyToManyField with limit_choices_to.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/checks.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/fields.txt | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 2ea2fd0df2..c65cb4b6ce 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -310,7 +310,7 @@ Related fields * **fields.W342**: Setting ``unique=True`` on a ``ForeignKey`` has the same effect as using a ``OneToOneField``. * **fields.W343**: ``limit_choices_to`` has no effect on ``ManyToManyField`` - with a ``through`` model. + with a ``through`` model. *This check appeared before Django 4.0.* * **fields.W344**: The field's intermediary table ``<table name>`` clashes with the table name of ``<model>``/``<model>.<field name>``. * **fields.W345**: ``related_name`` has no effect on ``ManyToManyField`` with a diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 1a3558ac17..e03b8fa82a 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1810,10 +1810,6 @@ that control how the relationship functions. Same as :attr:`ForeignKey.limit_choices_to`. - ``limit_choices_to`` has no effect when used on a ``ManyToManyField`` with a - custom intermediate table specified using the - :attr:`~ManyToManyField.through` parameter. - .. attribute:: ManyToManyField.symmetrical Only used in the definition of ManyToManyFields on self. Consider the |
