From bec123f005653a518083359272bf4807e4cfbd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rogelio=20Dom=C3=ADnguez=20Hern=C3=A1ndez?= Date: Wed, 22 Jul 2020 17:36:05 -0500 Subject: [PATCH] fix create_form override (arguments-differ) --- bukuserver/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bukuserver/views.py b/bukuserver/views.py index 62a0057..05a3373 100644 --- a/bukuserver/views.py +++ b/bukuserver/views.py @@ -152,8 +152,8 @@ class BookmarkModelView(BaseModelView): self.url_render_mode = kwargs.pop('url_render_mode', DEFAULT_URL_RENDER_MODE) super().__init__(*args, **kwargs) - def create_form(self): - form = super().create_form() + def create_form(self, obj=None): + form = super().create_form(obj) if 'url' in request.args.keys(): form.url.data = request.args.get("url") if 'title' in request.args.keys():