def add_oneoff(version, term, target):
    if version:
        k = 'redirects:v2:oneoffs:%s:%s' % (version, term)
    else:
        k = 'redirects:v2:oneoffs:%s' % term
    r.set(k, target)
dataset/ETHPy150Open djangome/djangome/djangome/views.py/add_oneoff/original