Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itimor committed Sep 15, 2020
1 parent 6ff3e57 commit 476074f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/tickets/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_queryset(self):
if user.is_admin:
return Ticket.objects.all()
else:
return Ticket.objects.all().filter(ticketuser__username=self.request.user)
return Ticket.objects.all().filter(ticketuser__username=self.request.user).distinct()


class TicketFlowLogViewSet(BulkModelMixin):
Expand Down

0 comments on commit 476074f

Please sign in to comment.