@any_form.register_default<EOL>def any_form_default(form_cls, **kwargs):
form_data = {}<EOL>form_files = {}<EOL>form_fields, fields_args = split_model_kwargs(kwargs)<EOL>for name, field in form_cls.base_fields.iteritems():<EOL><INDENT>if name in form_fields:<EOL><INDENT>form_data[name] = kwargs[name]<EOL><DEDENT>else:<EOL><INDENT>form_data[name] = any_form_field(field, **fields_args[name])<EOL><DEDENT><DEDENT>return form_data, form_files<EOL>
Returns tuple with form data and files