item_dict = [] for field in item_detail._meta.fields: attname = field.attname row = {attname: getattr(item_detail, attname)} item_dict.append(row)