Reset search field

As an example I added a search_fields to ShiftuserAdmin class:

class ShiftuserAdmin(admin.ModelAdmin):
    list_display = ('first_name', 'last_name', 'function')
    ordering = ('first_name', 'last_name')
    search_fields = ['first_name', 'last_name'], ShiftuserAdmin)

Is there an easy way to reset a search entry? Or do I have to write a javascript to achief this?

If you look at the counts to the right of the search button, you’ll see that the “total” count is a link. That will refresh the page with the search cleared.

Thanks for sharing Dajngo “secrets” with me. I expected it to be simple and it was!