You do not give your context so I don't know whether you have access to
row, but if you have:
{{response.headers['Content-Disposition'] = "attachment;filename=%s_%s.ics"
% ( IS_SLUG()(organization.name)[0], row.id)}}
It's straight python I think.
Le mercredi 25 avril 2012 10:47:57 UTC+2, Annet a écrit :
>
> In a .ics view I generate the file name as follows:
>
> {{response.headers['Content-Disposition'] = 'attachment;filename=%s.ics' %
> IS_SLUG()(organization.name)[0]}}
>
> I'd like to add the row.id to the file name as well, I've tried several
> ways but none of them worked, what is the correct syntax to do this.
>
>
> Kind regards,
>
> Annet.
>