Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't translate the filename for generated PDFs

Roland Geiderb5f0ce93222f
diff --git a/wger/nutrition/views/plan.py b/wger/nutrition/views/plan.py
index 09b47a697..cd431549c 100644
--- a/wger/nutrition/views/plan.py
+++ b/wger/nutrition/views/plan.py
@@ -178,9 +178,7 @@ def export_pdf(request, id):
# Create the HttpResponse object with the appropriate PDF headers.
response = HttpResponse(mimetype='application/pdf')
-
- # Translators: translation can only have ASCII characters
- response['Content-Disposition'] = 'attachment; filename=%s.pdf' % _('nutritional-plan')
+ response['Content-Disposition'] = 'attachment; filename=nutritional-plan.pdf'
# Create the PDF object, using the response object as its "file."
doc = SimpleDocTemplate(response,