def __init__(self, model, fields, flat=False):
self.fields = fields<EOL>self.model = model<EOL>self.flat = flat<EOL>
:param model: the current model
:param fields: a cooked fields set (es_field, djfield, field)