def inrange_filter(fld, rng, **kw):
    assert rng[0] <= rng[1]
    kw[fld + '__isnull'] = False
    kw[fld + '__gte'] = rng[0]
    kw[fld + '__lte'] = rng[1]
    return Q(**kw)
Simple verify.
dataset/ETHPy150Open lsaffre/lino/lino/core/utils.py/inrange_filter--crossover with--dataset/ETHPy150Open letsencrypt/letsencrypt/acme/acme/challenges.py/HTTP01Response.simple_verify