def _get_fields_info(self, cols, model_schema, filter_rel_fields, **kwargs):
ret = list()<EOL>for col in cols:<EOL><INDENT>page = page_size = None<EOL>col_args = kwargs.get(col, {})<EOL>if col_args:<EOL><INDENT>page = col_args.get(API_PAGE_INDEX_RIS_KEY, None)<EOL>page_size = col_args.get(API_PAGE_SIZE_RIS_KEY, None)<EOL><DEDENT>ret.append(<EOL>self._get_field_info(<EOL>model_schema.fields[col],<EOL>filter_rel_fields.get(col, []),<EOL>page=page,<EOL>page_size=page_size,<EOL>)<EOL>)<EOL><DEDENT>return ret<EOL>
Returns a dict with fields detail
    from a marshmallow schema

:param cols: list of columns to show info for
:param model_schema: Marshmallow model schema
:param filter_rel_fields: expects add_query_rel_fields or
                            edit_query_rel_fields
:param kwargs: Receives all rison arguments for pagination
:return: dict with all fields details