fix create_form override (arguments-differ)

This commit is contained in:
Rogelio Domínguez Hernández 2020-07-22 17:36:05 -05:00
parent 484e17c001
commit bec123f005

View File

@ -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():