projets
/
auf_rh_dae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23da9c
)
[#3224] Permettre à la colonne implantation de wrapper dans la liste des postes
author
Eric Mc Sween
<eric.mcsween@auf.org>
Fri, 1 Jun 2012 18:38:01 +0000
(14:38 -0400)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Fri, 1 Jun 2012 18:38:01 +0000
(14:38 -0400)
project/rh/admin.py
patch
|
blob
|
blame
|
history
diff --git
a/project/rh/admin.py
b/project/rh/admin.py
index
5ed964e
..
bdf43d1
100644
(file)
--- a/
project/rh/admin.py
+++ b/
project/rh/admin.py
@@
-738,7
+738,7
@@
class PosteAdmin(DateRangeMixin, AUFMetadataAdminMixin, \
'_apercu',
'_nom',
'_occupe_par',
- 'implantation',
+ '_implantation',
'_service',
'_responsable',
'date_debut',
@@
-897,6
+897,10
@@
class PosteAdmin(DateRangeMixin, AUFMetadataAdminMixin, \
_responsable.short_description = 'Responsable'
_responsable.allow_tags = True
+ def _implantation(self, poste):
+ return poste.implantation.nom
+ _responsable.short_description = 'Implantation'
+
def _nom(self, poste):
return """<a href="%s">%s</a>""" % \
(reverse('admin:rh_poste_change', args=(poste.id,)),