X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/57a20265fc4e83cdaa26d8c05af2e4d9a77afea0..bf3f18ce9313f4929ff327fbf12803157de171cb:/apps/reporting/views.py?ds=inline diff --git a/apps/reporting/views.py b/apps/reporting/views.py index a23252ec2..8cb2715d5 100644 --- a/apps/reporting/views.py +++ b/apps/reporting/views.py @@ -37,7 +37,7 @@ def stats_page(request): locals(), context_instance=RequestContext(request)) -@generated_file_view('reports/katalog.pdf', 'application/pdf', +@generated_file_view('reports/katalog.pdf', 'application/pdf', send_name=lambda: 'wolnelektury_%s.pdf' % date.today(), signals=[Book.published]) def catalogue_pdf(path): @@ -47,7 +47,7 @@ def catalogue_pdf(path): }) -@generated_file_view('reports/katalog.csv', 'application/csv', +@generated_file_view('reports/katalog.csv', 'application/csv', send_name=lambda: 'wolnelektury_%s.csv' % date.today(), signals=[Book.published]) def catalogue_csv(path):