def maire(self, obj):
     if obj.id:
         return list_of_links(
             obj.elus.filter(fonction=Fonction.MAIRE),
             "admin:data_france_elumunicipal_change",
         )
     return "-"
 def conseillers(self, obj):
     if obj.id:
         return list_of_links(
             obj.elus.filter(fonction="").order_by("nom", "prenom"),
             "admin:data_france_elumunicipal_change",
         )
     return "-"
 def president(self, obj):
     if obj.id:
         return list_of_links(
             EluMunicipal.objects.filter(fonction_epci=Fonction.PRESIDENT,
                                         commune__epci=obj),
             "admin:data_france_elumunicipal_change",
         )
     return "-"
 def adjoints(self, obj):
     if obj.id:
         return list_of_links(
             obj.elus.filter(fonction=Fonction.MAIRE_ADJOINT).order_by(
                 "ordre_fonction"),
             "admin:data_france_elumunicipal_change",
         )
     return "-"
 def vice_presidents(self, obj):
     if obj.id:
         return list_of_links(
             EluMunicipal.objects.filter(
                 fonction_epci=Fonction.VICE_PRESIDENT,
                 commune__epci=obj).order_by("nom", "prenom"),
             "admin:data_france_elumunicipal_change",
         )
     return "-"
 def conseillers(self, obj):
     if obj.id:
         return list_of_links(
             EluMunicipal.objects.filter(
                 fonction_epci="",
                 date_debut_mandat_epci__isnull=False,
                 commune__epci=obj,
             ).order_by("nom", "prenom"),
             "admin:data_france_elumunicipal_change",
         )
     return "-"