from django.contrib.admin import helpers
from django.template.response import TemplateResponse


class MyModelAdmin(admin.ModelAdmin):

    def admin_action(self, request, queryset):
        if request.POST.get('post'):
            pass
Problem using Django admin Actions with intermediate pages