A right, didn't see the name of the function, just where it was called 
^_^

On 30 Jan 2014, at 18:10, Markus Holtermann wrote:

>> +
>> +from pyconde.celery import app
>> +
>> +
>> +@app.task
>> +def render_invoice(purchase_id):
>> +    from .exporters import PurchaseExporter
>> +    from .models import Purchase
>> +    from .utils import generate_invoice_filename
>> +
>> +    try:
>> +        purchase = 
>> Purchase.objects.get_exportable_purchases().get(pk=purchase_id)
>> +    except Purchase.DoesNotExist:
>> +        return None
>> +
>> +    generate_invoice_filename(purchase)
>
> I'd add an action using the ``send_invoice`` task instead. This could 
> also be triggered by the user himself.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/EuroPython/djep/pull/39/files#r9313391