mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
* 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.
This commit is contained in:
@@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user