Add URL to search query

This commit is contained in:
Sascha Ißbrücker 2020-12-28 06:46:43 +01:00
parent e497bcb5c0
commit 719a11a658

View File

@ -36,6 +36,7 @@ def query_bookmarks(user: User, query_string: str):
| Q(description__contains=term) | Q(description__contains=term)
| Q(website_title__contains=term) | Q(website_title__contains=term)
| Q(website_description__contains=term) | Q(website_description__contains=term)
| Q(url__contains=term)
) )
for tag_name in query['tag_names']: for tag_name in query['tag_names']:
@ -68,6 +69,7 @@ def query_tags(user: User, query_string: str):
| Q(bookmark__description__contains=term) | Q(bookmark__description__contains=term)
| Q(bookmark__website_title__contains=term) | Q(bookmark__website_title__contains=term)
| Q(bookmark__website_description__contains=term) | Q(bookmark__website_description__contains=term)
| Q(bookmark__url__contains=term)
) )
for tag_name in query['tag_names']: for tag_name in query['tag_names']: