Skip to content

Commit

Permalink
Display only one copy of song in allsongs
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Jun 2, 2024
1 parent d10c5a2 commit e7ace11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class AllSongListView(BaseSongListView):
"""Returns all songs for this specific tenant"""

def get_queryset(self):
return super().get_queryset().filter(categories__tenant=self.request.tenant)
return super().get_queryset().filter(categories__tenant=self.request.tenant).distinct()

def get_title(self):
"""Return title of this song set"""
Expand Down

0 comments on commit e7ace11

Please sign in to comment.