#21999: have filter_horizontal / filter_vertical work with ForeignKey -------------------------------+------------------------------------------ Reporter: rm_ | Owner: nobody Type: New feature | Status: new Component: contrib.admin | Version: master Severity: Normal | Keywords: admin FilteredSelectMultiple Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------------ 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 - 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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/046.990fc9a13755b393326d45db951906f5%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.