def filter(self, name, value, queryset):
        kwargs = {}
        # Filter min.
        if value[0]:
            kwargs['%s__gte' % name] = value[0]
        # Filter max.
        if value[1]:
            kwargs['%s__lte' % name] = value[1]
        return queryset.filter(**kwargs)
dataset/ETHPy150Open praekelt/django-export/export/fields.py/DecimalField.filter/original