Skip to content

Commit

Permalink
Fix song being displayed multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Jan 26, 2024
1 parent 67dbcbe commit 6a6b010
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 @@ -35,7 +35,7 @@ class BaseSongListView(ListView):
FIELDS = ["id", "name", "capo", "author", "link", "prerendered"]

def get_queryset(self):
queryset = super().get_queryset().filter(categories__tenant=self.request.tenant)
queryset = super().get_queryset()
if not self.request.user.is_superuser:
queryset = queryset.filter(archived=False)
return queryset
Expand Down

0 comments on commit 6a6b010

Please sign in to comment.