mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 05:07:50 +02:00
Add catalog to by tag filter
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from ram.utils import git_suffix
|
||||
|
||||
__version__ = "0.14.2"
|
||||
__version__ = "0.14.3"
|
||||
__version__ += git_suffix(__file__)
|
||||
|
Reference in New Issue
Block a user