diff --git a/manager/templatetags/manager.py b/manager/templatetags/manager.py index 7c2b13f..edbcd10 100644 --- a/manager/templatetags/manager.py +++ b/manager/templatetags/manager.py @@ -10,6 +10,7 @@ def orgaObjects(cls, orga): def directUserOrgas(user): return sorted(user.organization_set.all(), key=lambda x: str(x)) +@register.simple_tag def directOrgaString(user): return ", ".join(str(orga) for orga in directUserOrgas(user))