'Callback used by deferred_to_columns(). The "target" parameter should
be a set instance.'

def deferred_to_columns_cb(self, target, model, fields):

    table = model._meta.db_table
    if (table not in target):
        target[table] = set()
    for field in fields:
        target[table].add(field.column)
