fix: dev: bukuserver bookmark creation

temporary fix until actual cause found
This commit is contained in:
rachmadaniHaryono 2020-11-18 04:30:46 +08:00
parent 35aa009bf9
commit 08e81c2923

View File

@ -154,7 +154,7 @@ class BookmarkModelView(BaseModelView):
def create_form(self, obj=None): def create_form(self, obj=None):
form = super().create_form(obj) 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") form.url.data = request.args.get("url")
if 'title' in request.args.keys(): if 'title' in request.args.keys():
form.title.data = request.args.get("title") form.title.data = request.args.get("title")