From 04d5324dc2b9c97c20354863e4b014e1bc3f3128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 7 Feb 2019 10:48:25 +0100 Subject: [PATCH] misc: rename csv template file as .txt so it gets considered for i18n (#30452) --- MANIFEST.in | 2 +- .../{manager_sample_events.csv => manager_sample_events.txt} | 0 chrono/manager/views.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename chrono/manager/templates/chrono/{manager_sample_events.csv => manager_sample_events.txt} (100%) diff --git a/MANIFEST.in b/MANIFEST.in index a0a232ab..c23a45a6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,7 +6,7 @@ recursive-include chrono/manager/static *.css *.scss *.js # templates recursive-include chrono/api/templates *.html -recursive-include chrono/manager/templates *.html *.csv +recursive-include chrono/manager/templates *.html *.txt include COPYING README include MANIFEST.in diff --git a/chrono/manager/templates/chrono/manager_sample_events.csv b/chrono/manager/templates/chrono/manager_sample_events.txt similarity index 100% rename from chrono/manager/templates/chrono/manager_sample_events.csv rename to chrono/manager/templates/chrono/manager_sample_events.txt diff --git a/chrono/manager/views.py b/chrono/manager/views.py index 3e9696cd..80a59e41 100644 --- a/chrono/manager/views.py +++ b/chrono/manager/views.py @@ -570,7 +570,7 @@ agenda_add_event = AgendaAddEventView.as_view() class AgendaImportEventsSampleView(TemplateView): - template_name = 'chrono/manager_sample_events.csv' + template_name = 'chrono/manager_sample_events.txt' content_type = 'text/csv' def get_context_data(self, **kwargs):