From 5afb5157884238e70f03902dc4606d5a7602c43c Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Tue, 12 Jul 2016 14:35:41 +0300 Subject: [PATCH] =?UTF-8?q?1455:=20=D0=AD=D1=82=D0=B0=D0=BF=20=E2=84=965:?= =?UTF-8?q?=20=D0=90=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B0=20=D0=B1=D0=B0?= =?UTF-8?q?=D0=B3=D0=B8=20-=20=D0=9F=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D1=87?= =?UTF-8?q?=D0=B8=D0=BA=D0=B8=20->=20=D0=AD=D0=9A=D0=A1=D0=9F=D0=9E=D0=A0?= =?UTF-8?q?=D0=A2=20=D1=84=D0=B8=D0=BA=D1=81=20=D1=81=20=D0=BD=D0=B0=D0=B7?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=D0=BC=20(=D0=B4=D0=BB=D0=B8?= =?UTF-8?q?=D0=BD=D0=B0=2027=20=D1=81=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- emencia/django/newsletter/utils/excel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emencia/django/newsletter/utils/excel.py b/emencia/django/newsletter/utils/excel.py index bd54b6d6..be226f00 100644 --- a/emencia/django/newsletter/utils/excel.py +++ b/emencia/django/newsletter/utils/excel.py @@ -100,4 +100,4 @@ class ExcelResponse(HttpResponse): super(ExcelResponse, self).__init__(content=output.getvalue(), mimetype=mimetype) self['Content-Disposition'] = 'attachment;filename="%s.%s"' % \ - (output_name.replace('"', '\"'), file_ext) + (output_name.replace('"', '\"')[:27], file_ext)