[Fixed]-Django 1.7 filter horizontal not working for foreignkey


The filter_horizontal and filter_vertical options are for many-to-many fields. You can’t use them for foreign keys.

The docs for the options only mention many to many fields, and if you look at the code, you can see that the widget is only used for many-to-many form fields.

Leave a comment