diff --git a/manager/templatetags/manager.py b/manager/templatetags/manager.py index 58966d0..ecb4712 100644 --- a/manager/templatetags/manager.py +++ b/manager/templatetags/manager.py @@ -5,4 +5,4 @@ register = template.Library() @register.simple_tag 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())