Add option to mark bookmarks as shared by default (#1170)

* Add option to mark bookmarks as shared by default

* add migration
This commit is contained in:
Sascha Ißbrücker
2025-08-22 20:05:56 +02:00
committed by GitHub
parent 723b843c13
commit 6c874afff2
7 changed files with 86 additions and 6 deletions

View File

@@ -50,6 +50,7 @@ class BookmarkForm(forms.ModelForm):
"tag_string": request.GET.get("tags"),
"auto_close": "auto_close" in request.GET,
"unread": request.user_profile.default_mark_unread,
"shared": request.user_profile.default_mark_shared,
}
if instance is not None and request.method == "GET":
initial = {"tag_string": build_tag_string(instance.tag_names, " ")}