mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-11 20:57:49 +02:00
Allow pre-filling notes in new bookmark form (#812)
This commit is contained in:
@@ -192,6 +192,7 @@ def new(request):
|
||||
initial_url = request.GET.get("url")
|
||||
initial_title = request.GET.get("title")
|
||||
initial_description = request.GET.get("description")
|
||||
initial_notes = request.GET.get("notes")
|
||||
initial_auto_close = "auto_close" in request.GET
|
||||
initial_mark_unread = request.user.profile.default_mark_unread
|
||||
|
||||
@@ -214,6 +215,8 @@ def new(request):
|
||||
form.initial["title"] = initial_title
|
||||
if initial_description:
|
||||
form.initial["description"] = initial_description
|
||||
if initial_notes:
|
||||
form.initial["notes"] = initial_notes
|
||||
if initial_auto_close:
|
||||
form.initial["auto_close"] = "true"
|
||||
if initial_mark_unread:
|
||||
|
Reference in New Issue
Block a user