From 08e81c292392bf7ee0b2e5fbf17647fef976f901 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Wed, 18 Nov 2020 04:30:46 +0800 Subject: [PATCH] fix: dev: bukuserver bookmark creation temporary fix until actual cause found --- bukuserver/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukuserver/views.py b/bukuserver/views.py index 24bad71..35b841c 100644 --- a/bukuserver/views.py +++ b/bukuserver/views.py @@ -154,7 +154,7 @@ class BookmarkModelView(BaseModelView): def create_form(self, obj=None): form = super().create_form(obj) - if 'url' in request.args.keys(): + if 'url' in request.args.keys() and not request.args.get("url").startswith('/bookmark/'): form.url.data = request.args.get("url") if 'title' in request.args.keys(): form.title.data = request.args.get("title")