have filter_horizontal / filter_vertical work with ForeignKey
|Reported by:||rm_||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When you have many values for a ForeignKey the ability to filter it comes very handy.
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