def deduplicate_with_order(seq):
    seen = set()
    seen_add = seen.add
    return [x for x in seq if not (x in seen or seen_add(x))]
Monkeypatches support for us into parts of Django.
dataset/ETHPy150Open coursera/dataduct/dataduct/database/parsers/select_query.py/deduplicate_with_order--crossover with--dataset/ETHPy150Open andrewgodwin/channels/channels/hacks.py/monkeypatch_django