diff --git a/imio_teleservices_templatetags/templatetags/imio_teleservices.py b/imio_teleservices_templatetags/templatetags/imio_teleservices.py index 8c7fe40..90fc99b 100644 --- a/imio_teleservices_templatetags/templatetags/imio_teleservices.py +++ b/imio_teleservices_templatetags/templatetags/imio_teleservices.py @@ -260,3 +260,13 @@ def autorisation_voyage_enfants_concernes(lst_enfants_concernes): enfants_concernes = enfants_concernes + "- " + e[0] + " né(e) à " + e[1] + " le " + e[2] + "\r\n" return enfants_concernes + + +@register.filter +def distinct_list(value): + """ + Permet de trier les doublons d'une liste + value : (list) + return : (list) + """ + return list(set(value))