Fix empty search showing tags without bookmarks

This commit is contained in:
Sascha Ißbrücker 2019-12-26 23:51:52 +01:00
parent 4c038f8157
commit b58633c377

View File

@ -55,6 +55,9 @@ def query_tags(user: User, query_string: str):
# Filter for user
query_set = query_set.filter(owner=user)
# Only show tags which have bookmarks
query_set = query_set.filter(bookmark__isnull=False)
# Split query into search terms and tags
query = _parse_query_string(query_string)