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

8 lines
167 B
Python
Raw Normal View History

2014-08-20 18:50:07 +00:00
from django.http import HttpResponse
2014-08-19 18:59:23 +00:00
def generate_bill(modeladmin, request, queryset):
2014-08-20 18:50:07 +00:00
bill = queryset.get()
bill.close()
return HttpResponse(bill.html)