Projet

Général

Profil

0001-misc-rename-csv-template-file-as-.txt-so-it-gets-con.patch

Frédéric Péters, 07 février 2019 10:50

Télécharger (1,78 ko)

Voir les différences:

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%)
MANIFEST.in
6 6

  
7 7
# templates
8 8
recursive-include chrono/api/templates *.html
9
recursive-include chrono/manager/templates *.html *.csv
9
recursive-include chrono/manager/templates *.html *.txt
10 10

  
11 11
include COPYING README
12 12
include MANIFEST.in
chrono/manager/views.py
570 570

  
571 571

  
572 572
class AgendaImportEventsSampleView(TemplateView):
573
    template_name = 'chrono/manager_sample_events.csv'
573
    template_name = 'chrono/manager_sample_events.txt'
574 574
    content_type = 'text/csv'
575 575

  
576 576
    def get_context_data(self, **kwargs):
577
-