How to setup admin for filter by foreign key with many objects

If I’m following you correctly, it sounds like you’re looking to add an autocomplete select as a filter?

If so, this blog post may help you:

Otherwise, see ModelAdmin List Filters | Django documentation | Django for information about how you can extend the functionality of those filters. (This thread may also provide some ideas: How to add a dropdown list in ModelAdmin list_filter)

1 Like