Add missing tag decorator

This commit is contained in:
Kumi 2019-02-01 20:39:30 +00:00
parent 1ed1764d45
commit 67894a30bf

View file

@ -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))