diff options
| author | Johannes Maron <info@johanneshoppe.com> | 2021-01-12 11:37:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 11:37:38 +0100 |
| commit | 3071660acfbdf4b5c59457c8e9dc345d5e8894c5 (patch) | |
| tree | 78b95d329ff10f4e0cd1c7b4d237d78c29b0d0bb /docs/releases/3.2.txt | |
| parent | ba3fb2e4d0aca26f6ea37d7e31488ad09043f89d (diff) | |
Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to autocomplete fields.
* Fixed #29010 -- Added limit_choices_to support to autocomplete fields.
* Fixed #29138 -- Allowed autocomplete fields to target a custom
to_field rather than the PK.
Diffstat (limited to 'docs/releases/3.2.txt')
| -rw-r--r-- | docs/releases/3.2.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index a2aa1bb80c..f6c5ae5b62 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -119,6 +119,12 @@ Minor features * The admin now supports theming. See :ref:`admin-theming` for more details. +* :attr:`.ModelAdmin.autocomplete_fields` now respects + :attr:`ForeignKey.to_field <django.db.models.ForeignKey.to_field>` and + :attr:`ForeignKey.limit_choices_to + <django.db.models.ForeignKey.limit_choices_to>` when searching a related + model. + :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
