From a quick look at the code this is what is required:
- update contrib/admin/checks.py, contrib/admin/validation.py,
contrib/admin/options.py to permit filter_* on ForeignKeys
- make FilteredSelectMultiple accept a max_entries limit so that a
ForeignKey is limited to 1 filtered entry but a ManyToMany may have any
limit > 1
- have the javascript work accordingly with the aforementioned limit
--
Ticket URL: <https://code.djangoproject.com/ticket/21999>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
Thanks for the suggestion, but I think it's better to use `raw_id_fields`
which is already designed for `ForeignKey`.
--
Ticket URL: <https://code.djangoproject.com/ticket/21999#comment:1>