From 67894a30bf8c9806a3feb0e54d10e8af07bdc517 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 1 Feb 2019 20:39:30 +0000 Subject: [PATCH] Add missing tag decorator --- manager/templatetags/manager.py | 1 + 1 file changed, 1 insertion(+) 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))