':param model: the current model
:param fields: a cooked fields set (es_field, djfield, field)'

def __init__(self, model, fields, flat=False):

    self.fields = fields
    self.model = model
    self.flat = flat
