[Django]-Reverse Relation Search Django Admin Interface

3👍

You shouldn’t try to do this using an admin class registered to your Tag model. Instead, set up an admin class for Publication and set its search_fields:

class PublicationAdmin(admin.ModelAdmin):
    list_display = ('title',)
    search_fields = ('tags__title',)

Leave a comment