(field, gt=None, gte=None, lt=None, lte=None)
return range_filter(field, *params)
Range filter that accepts date and datetime objects as arguments
Range filter that accepts date and datetime objects as arguments
Range filter that accepts date and datetime objects as arguments
def date_range(field, gt=None, gte=None, lt=None, lte=None):
    """Range filter that accepts date and datetime objects as arguments"""
    params = [d if d is None else es_format_datetime(d) for d in [gt, gte, lt, lte]]
    return range_filter(field, *params)
def date_range ( field , gt = None , gte = None , lt = None , lte = None ) : params = [ d if d is None else es_format_datetime ( d ) for d in [ gt , gte , lt , lte ] ] return range_filter ( field , * params )