From: Olivier Larchevêque Date: Thu, 29 Mar 2012 20:43:51 +0000 (-0400) Subject: employe apercu X-Git-Tag: 1.6.5~160^2~4 X-Git-Url: http://git.auf.org/?p=auf_rh_dae.git;a=commitdiff_plain;h=ce740bb5d01b6ec128df2adc21854f742b4e0250 employe apercu --- diff --git a/project/rh/models.py b/project/rh/models.py index 15a8ad7..290ba51 100644 --- a/project/rh/models.py +++ b/project/rh/models.py @@ -248,7 +248,7 @@ class Poste_(AUFMetadata): return [self.implantation.region] def get_devise(self): - return ValeurPoint.objects.filter(implantation=self.implantation).order_by('annee')[0].devise + return ValeurPoint.objects.filter(implantation=self.implantation, devise__archive=False).order_by('annee')[0].devise class Poste(Poste_): __doc__ = Poste_.__doc__ diff --git a/project/rh/templates/admin/rh/employe/apercu.html b/project/rh/templates/admin/rh/employe/apercu.html index 46c3d9d..55bd720 100644 --- a/project/rh/templates/admin/rh/employe/apercu.html +++ b/project/rh/templates/admin/rh/employe/apercu.html @@ -1,6 +1,13 @@ {% extends 'admin/change_form.html' %} + {% load i18n admin_modify adminmedia %} +{% block extrahead %} + {{ block.super }} + + +{% endblock %} + {% block breadcrumbs %}{% if not is_popup %}