Skip to content

Commit

Permalink
Merge 7f904cd into 7b94541
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-o committed May 14, 2020
2 parents 7b94541 + 7f904cd commit e4b142e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intranet/apps/polls/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def visible_to_user(self, user):
"""

return Poll.objects.filter(visible=True).filter(Q(groups__in=user.groups.all()) | Q(groups__isnull=True))
return Poll.objects.filter(visible=True).filter(Q(groups__in=user.groups.all()) | Q(groups__isnull=True)).distinct()


class Poll(models.Model):
Expand Down

0 comments on commit e4b142e

Please sign in to comment.