@create_from_view.init_view<EOL><INDENT>@form.init_view<EOL>def init_form_view(self, view, opts):<DEDENT>
name = opts.get("<STR_LIT:name>", opts.get("<STR_LIT>"))<EOL>if isinstance(name, Form):<EOL><INDENT>return<EOL><DEDENT>template = opts.get("<STR_LIT>", getattr(view, "<STR_LIT>", None))<EOL>if not template:<EOL><INDENT>if not name:<EOL><INDENT>raise NoFormError("<STR_LIT>")<EOL><DEDENT>return<EOL><DEDENT>try:<EOL><INDENT>as_ = opts.get("<STR_LIT>", getattr(self.form, "<STR_LIT>", "<STR_LIT>"))<EOL>form_class = create_from_template(current_app, template, var_name=as_)<EOL><DEDENT>except NoFormError:<EOL><INDENT>if not name:<EOL><INDENT>raise<EOL><DEDENT>return<EOL><DEDENT>if not name:<EOL><INDENT>name = view.name<EOL><DEDENT>self.forms[name] = form_class<EOL>self.form_created_from_view_signal.send(self, view=view, form_class=form_class)<EOL>return form_class<EOL>
Checks if the form referenced in the view exists or attempts to
        create it by parsing the template