[Answered ]-Is there an efficient way to get the Django model of a modeladmin object from within an Admin action?

1👍

A queryset has a .model attribute, so you can get a reference to the model with:

def my_action(modeladmin, request, queryset):
    model = queryset.model
    # …

Leave a comment