fix create_form override (arguments-differ)
This commit is contained in:
parent
484e17c001
commit
bec123f005
@ -152,8 +152,8 @@ class BookmarkModelView(BaseModelView):
|
|||||||
self.url_render_mode = kwargs.pop('url_render_mode', DEFAULT_URL_RENDER_MODE)
|
self.url_render_mode = kwargs.pop('url_render_mode', DEFAULT_URL_RENDER_MODE)
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
def create_form(self):
|
def create_form(self, obj=None):
|
||||||
form = super().create_form()
|
form = super().create_form(obj)
|
||||||
if 'url' in request.args.keys():
|
if 'url' in request.args.keys():
|
||||||
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():
|
||||||
|
Loading…
Reference in New Issue
Block a user