django-orchestra-test/orchestra/apps/bills/actions.py

8 lines
167 B
Python

from django.http import HttpResponse
def generate_bill(modeladmin, request, queryset):
bill = queryset.get()
bill.close()
return HttpResponse(bill.html)