Add missing tag decorator
This commit is contained in:
parent
1ed1764d45
commit
67894a30bf
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ def orgaObjects(cls, orga):
|
||||||
def directUserOrgas(user):
|
def directUserOrgas(user):
|
||||||
return sorted(user.organization_set.all(), key=lambda x: str(x))
|
return sorted(user.organization_set.all(), key=lambda x: str(x))
|
||||||
|
|
||||||
|
@register.simple_tag
|
||||||
def directOrgaString(user):
|
def directOrgaString(user):
|
||||||
return ", ".join(str(orga) for orga in directUserOrgas(user))
|
return ", ".join(str(orga) for orga in directUserOrgas(user))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue