X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/57a20265fc4e83cdaa26d8c05af2e4d9a77afea0..013ec8a416d4ff1ea3e1f2fa9ee2935623197ecd:/apps/reporting/views.py 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):