myarik / django-rest-elasticsearch

Elasticsearch support for Django REST Framework
Other
192 stars 38 forks source link

Remove None values from gte/lte range filter #13

Closed nvlbud closed 6 years ago

nvlbud commented 7 years ago

Elasticsearch finds nothing when None is passed to gte/lte in the range filter. This pull request changes behaviour so that it does not pass None if the filter value is undefined.