From 87b0fab00fb299ebd9de6aad75fe2a67cad92a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20H=C3=A1la?= Date: Sun, 2 Jun 2024 11:34:46 +0200 Subject: [PATCH] Display only one copy of song in allsongs --- backend/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/views.py b/backend/views.py index dfb18a3..d7d289e 100644 --- a/backend/views.py +++ b/backend/views.py @@ -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"""