[Answered ]-How do I make a Django Admin drop down list have a dependency on a search box?

2👍

It sounds like you are describing the raw_id_fields option of admin…

class YourAdmin(admin.ModelAdmin):
    raw_id_fields = ('field1','field2')

0👍

easiest way – write your own custom widget and connect search field and drop down through js code.

But i think that you trying to get more than contrib.admin can give. contrib.admin is good developer tool, but if you need good custom interface – you should create it yourself.

Leave a comment