def _apercu(self, poste):
- link = u"""<a onclick="return showAddAnotherPopup(this);" title="Aperçu du poste" href='%s'><img src="%simg/loupe.png" /></a>""" % \
+ link = u"""<a onclick="return showAddAnotherPopup(this);" title="Aperçu du poste" href='%s'><img src="%simg/loupe.png" /> %s</a>""" % \
(reverse('poste_apercu', args=(poste.id,)),
settings.STATIC_URL,
+ poste.id,
)
return link
_apercu.allow_tags = True
- _apercu.short_description = u''
- _apercu.admin_order_field = ''
+ _apercu.short_description = 'Poste __#'
+ _apercu.admin_order_field = 'id'
def _service(self, obj):
return obj.service