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
# …
Source:stackexchange.com