Use more straightforward approach to get organizations from user
This commit is contained in:
parent
d1935e4884
commit
a1be826eeb
1 changed files with 1 additions and 1 deletions
|
@ -5,4 +5,4 @@ register = template.Library()
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def orgaString(user):
|
def orgaString(user):
|
||||||
return ", ".join(str(orga) for orga in Organization.objects.filter(users=user))
|
return ", ".join(str(orga) for orga in user.organization_set.all())
|
||||||
|
|
Loading…
Reference in a new issue