From 6a6b0109ec72caa1f3c3d5d226244b6b3297ada8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20H=C3=A1la?= Date: Fri, 26 Jan 2024 16:55:55 +0100 Subject: [PATCH] Fix song being displayed multiple times --- backend/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/views.py b/backend/views.py index b2d2620..214721f 100644 --- a/backend/views.py +++ b/backend/views.py @@ -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