From 449c527a80b0c1941abd4ae2894179ebdcceecbc Mon Sep 17 00:00:00 2001 From: Nilovna Bascunan-Vasquez Date: Fri, 29 Jul 2011 15:39:29 -0400 Subject: [PATCH] =?utf8?q?1780:=20Offre=20emploi:=20Emp=C3=AAcher=20de=20met?= =?utf8?q?tre=20une=20date=20limite=20ult=C3=A9rieure=20=C3=A0=20la=20date=20?= =?utf8?q?de=20d=C3=A9but=20de=20l'affectation.=20Refactoring=20et=20retrait?= =?utf8?q?=20de=20code=20inutile.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- auf/django/emploi/forms.py | 2 -- auf/django/emploi/views.py | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/auf/django/emploi/forms.py b/auf/django/emploi/forms.py index 861cb2c..7f963cc 100644 --- a/auf/django/emploi/forms.py +++ b/auf/django/emploi/forms.py @@ -1,8 +1,6 @@ # -*- encoding: utf-8 -*- -import os from django import forms -from django.contrib import admin from django.forms.models import inlineformset_factory from django.forms.widgets import CheckboxSelectMultiple from django.forms import ModelForm diff --git a/auf/django/emploi/views.py b/auf/django/emploi/views.py index db6a1b2..af80e24 100755 --- a/auf/django/emploi/views.py +++ b/auf/django/emploi/views.py @@ -54,7 +54,10 @@ def send_templated_email(candidat, template): texte_template = Template(template.plain_text) dict_texte = {"nom_candidat": candidat.nom, "prenom_candidat": candidat.prenom, - "offre_emploi": candidat.offre_emploi.nom,} + "offre_emploi": candidat.offre_emploi.nom, + "genre_candidat": "Monsieur" if candidat.genre == "M" \ + else "Madame", + } texte = Context(dict_texte) # HTML text html_template = Template(template.html) -- 1.7.10.4