From 719a11a658790092902713f198979ba88f722e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Mon, 28 Dec 2020 06:46:43 +0100 Subject: [PATCH] Add URL to search query --- bookmarks/queries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookmarks/queries.py b/bookmarks/queries.py index 564f4d8..0026086 100644 --- a/bookmarks/queries.py +++ b/bookmarks/queries.py @@ -36,6 +36,7 @@ def query_bookmarks(user: User, query_string: str): | Q(description__contains=term) | Q(website_title__contains=term) | Q(website_description__contains=term) + | Q(url__contains=term) ) 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__website_title__contains=term) | Q(bookmark__website_description__contains=term) + | Q(bookmark__url__contains=term) ) for tag_name in query['tag_names']: