From 23de8cea25407ff084286d454185c02b1a4121a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Larchev=C3=AAque?= Date: Wed, 8 Feb 2012 11:39:52 -0500 Subject: [PATCH] harmonisation --- project/rh/admin.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/project/rh/admin.py b/project/rh/admin.py index 345e883..e61c78e 100644 --- a/project/rh/admin.py +++ b/project/rh/admin.py @@ -588,12 +588,15 @@ class PosteAdmin(DateRangeMixin, AUFMetadataAdminMixin, ProtectRegionMixin, admi def _apercu(self, poste): - link = u""" %s""" % \ + view_link = u"""""" % \ (reverse('poste_apercu', args=(poste.id,)), settings.STATIC_URL, + ) + edit_link = u"""%s""" % \ + (reverse('admin:rh_poste_change', args=(poste.id,)), poste.id, ) - return link + return view_link + edit_link _apercu.allow_tags = True _apercu.short_description = 'Poste __#' _apercu.admin_order_field = 'id' @@ -602,11 +605,7 @@ class PosteAdmin(DateRangeMixin, AUFMetadataAdminMixin, ProtectRegionMixin, admi return obj.service def _nom(self, poste): - link = u"""%s""" % \ - (reverse('admin:rh_poste_change', args=(poste.id,)), - poste.nom, - ) - return link + return poste.nom _nom.allow_tags = True _nom.short_description = u'Nom' _nom.admin_order_field = 'nom' -- 1.7.10.4