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

4 lines
97 B
Python

def generate_bill(modeladmin, request, queryset):
for bill in queryset:
bill.close()