def get_model_as_formset(self, client_id):
    formset = {
        'form-TOTAL_FORMS': str(len(self.storage)),
        'form-INITIAL_FORMS': '0',
        }
    for record_index, record in enumerate(self.storage):
        prefix = 'form-%i' % record_index
        row = {'%s-client' % prefix: client_id,}
        for model_index, model_row in enumerate(MODEL_MAP_RAW):
            name, delegate, title, action, static = model_row
            key = '%s-%s' % (prefix, name)
            value = record[model_index]
            value_t = type(value)

            if value is None: # send None as empty string
                value = str()
            elif value_t is datetime:
                value = value.strftime('%Y-%m-%d %H:%M:%S')
            elif value_t is date:
                value = value.strftime('%Y-%m-%d')
            elif value_t in (int, float):
                value = str(value)
            elif value_t is dict:
                value = value.get('id', 'no id found')

            row[key] = value
        formset.update( row )
    return formset