'service',
'type_poste',
'type_poste__categorie_emploi',
+ 'type_poste__famille_professionnelle',
'vacant',
)
list_display_links = ('_nom',)
PosteCommentaireInline, )
def lookup_allowed(self, key, value):
- if key in (
- 'date_debut__gte',
- 'date_debut__isnull',
- 'date_fin__lte',
- 'date_fin__isnull',
- 'implantation__region__id__exact',
- 'implantation__id__exact',
- 'type_poste__id__exact',
- 'type_poste__categorie_emploi__id__exact',
- 'service__id__exact',
- 'service__isnull',
- 'vacant__exact',
- 'vacant__isnull',
- ):
- return True
+ return key in (
+ 'date_debut__gte', 'date_debut__isnull', 'date_fin__lte',
+ 'date_fin__isnull', 'implantation__region__id__exact',
+ 'implantation__id__exact', 'type_poste__id__exact',
+ 'type_poste__categorie_emploi__id__exact', 'service__id__exact',
+ 'service__isnull', 'vacant__exact', 'vacant__isnull',
+ ) or super(PosteAdmin, self).lookup_allowed(key, value)
def _apercu(self, poste):
view_link = u"""<a onclick="return showAddAnotherPopup(this);"