Commit 2bb1f80a authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix the duplication of services

parent 4b1ae74c
......@@ -6,8 +6,10 @@ class State(object):
def __init__(self, user):
if user.is_authenticated:
self.services = models.Service.objects.filter(
groups__user=user
self.services = (
models.Service.objects
.filter(groups__user=user)
.distinct()
)
else:
self.services = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment