Allow pre-filling tags in new bookmark form (#1060)

* feat - Allow tag_string as query for BookmarkForm in order to set tags via bookmark snippets

* add test

---------

Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@gmail.com>
This commit is contained in:
Bastian
2025-05-17 10:13:07 +02:00
committed by GitHub
parent 9a00ae4b93
commit f2800efc1a
2 changed files with 14 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ class BookmarkForm(forms.ModelForm):
"title": request.GET.get("title"),
"description": request.GET.get("description"),
"notes": request.GET.get("notes"),
"tag_string": request.GET.get("tags"),
"auto_close": "auto_close" in request.GET,
"unread": request.user_profile.default_mark_unread,
}