def show_item_dict(self, item):
d = {}<EOL>for col in self.show_columns:<EOL><INDENT>v = getattr(item, col)<EOL>if not isinstance(v, (int, float, string_types)):<EOL><INDENT>v = str(v)<EOL><DEDENT>d[col] = v<EOL><DEDENT>return d<EOL>
Returns a json-able dict for show