Add catalog to by tag filter

This commit is contained in:
2024-12-23 02:02:34 +01:00
parent 2d00436a87
commit f2b817103f
2 changed files with 8 additions and 1 deletions

View File

@@ -344,6 +344,13 @@ class GetObjectsFiltered(View):
)
for item in books:
data.append({"type": "book", "item": item})
catalogs = (
Catalog.objects.get_published(request.user)
.filter(query_2nd)
.distinct()
)
for item in catalogs:
data.append({"type": "catalog", "item": item})
except NameError:
pass