From cbae05cee2bc341a3b379b82bf53190aa4d53746 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 2 Jul 2013 14:57:12 +0200 Subject: [PATCH] Export avail. comments --- common/settings.py | 2 ++ stages/views.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/settings.py b/common/settings.py index a7c8670..6268e39 100644 --- a/common/settings.py +++ b/common/settings.py @@ -104,4 +104,6 @@ INSTALLED_APPS = ( 'stages', ) +ALLOWED_HOSTS = ['localhost', 'stages.pierre-coullery.ch'] + from local_settings import * diff --git a/stages/views.py b/stages/views.py index 28cd65a..7a4fe9f 100644 --- a/stages/views.py +++ b/stages/views.py @@ -208,13 +208,14 @@ def stages_export(request): ('Prénom', 'student__first_name'), ('Nom', 'student__last_name'), ('Classe', 'student__klass__name'), ('Filière', 'student__klass__section__name'), ('Début', 'availability__period__start_date'), ('Fin', 'availability__period__end_date'), - ('Remarques', 'comment'), + ('Remarques stage', 'comment'), ('Prénom référent', 'referent__first_name'), ('Nom référent', 'referent__last_name'), ('Institution', 'availability__corporation__name'), ('Rue Inst.', 'availability__corporation__street'), ('NPA Inst.', 'availability__corporation__pcode'), ('Ville Inst.', 'availability__corporation__city'), ('Domaine', 'availability__domain__name'), + ('Remarques Inst.', 'availability__comment'), ('Civilité contact', 'contact__title'), ('Prénom contact', 'contact__first_name'), ('Nom contact', 'contact__last_name'), ]