def copy_keys_except(dic, *keys):
    ret = dic.copy()
    for key in keys:
        try:
            del ret[key]
        except KeyError:
            pass
    return ret
Function that can be curried to provide the source column name for the m2m table
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/containers.py/copy_keys_except--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/fields/related.py/ManyToManyField._get_m2m_column_name