{"action":"opened","issue":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/109","labels_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/109/comments","events_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/109/events","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/issues/109","id":59717225,"number":109,"title":"add_form_extra_fields not reusable","user":{"login":"jvinolas","id":2132863,"avatar_url":"https://avatars.githubusercontent.com/u/2132863?v=3","gravatar_id":"","url":"https://api.github.com/users/jvinolas","html_url":"https://github.com/jvinolas","followers_url":"https://api.github.com/users/jvinolas/followers","following_url":"https://api.github.com/users/jvinolas/following{/other_user}","gists_url":"https://api.github.com/users/jvinolas/gists{/gist_id}","starred_url":"https://api.github.com/users/jvinolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvinolas/subscriptions","organizations_url":"https://api.github.com/users/jvinolas/orgs","repos_url":"https://api.github.com/users/jvinolas/repos","events_url":"https://api.github.com/users/jvinolas/events{/privacy}","received_events_url":"https://api.github.com/users/jvinolas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-03T22:31:58Z","updated_at":"2015-03-03T22:31:58Z","closed_at":null,"body":"I want to reuse my modelview with two different add methods but it is throwing this exception as I try to add extra fields. It seems the fields are not really created, but it works if I don't override add method and I put all the code inside modelview:\r\n\r\nUndefinedError: 'flask_appbuilder.forms.DynamicForm object' has no attribute 'template_base'\r\n\r\n I've also tried to put only add_form_extra_fields in modelview itself, but same error here.\r\n```\r\n\t@expose('/add', methods=['GET', 'POST'])\r\n\t@permission_name('add')\r\n\t@has_access\r\n\tdef add(self):\r\n\t\tself.add_title = \"Create new Virtual Desktop, derived from Template\"\r\n\t\tself.add_form_extra_fields = {'size': [[TextField('Size',\r\n\t\t\t\t\t\t\t\tdescription='Dimensions',\r\n\t\t\t\t\t\t\t\twidget=BS3TextFieldWidget())]],\r\n\t\t\t\t\t\t\t\t'template_base':  [[QuerySelectField('Base Template',\r\n\t\t\t\t\t\t\t\tquery_factory=template_query,\r\n\t\t\t\t\t\t\t\twidget=Select2Widget())]]}\r\n\t\tself.add_columns = ['name',\r\n\t\t\t\t'template_base',\r\n\t\t\t\t'size',\r\n\t\t\t\t'icon',\r\n\t\t\t\t'description']\r\n\t\twidget = self._add()\r\n\t\tif not widget:\r\n\t\t\treturn redirect(self.get_redirect())\r\n\t\telse:\r\n\t\t\treturn self.render_template(self.add_template,\r\n                                   title=self.add_title,\r\n                                   add_form_extra_fields=self.add_form_extra_fields,\r\n                                   add_columns=self.add_columns,\r\n                                   widgets=widget,\r\n                                   appbuilder=self.appbuilder)\r\n```"}}