silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
721 stars 106 forks source link

Select a range by two fields using one filter #109

Closed quant12345 closed 1 year ago

quant12345 commented 1 year ago

There are two model fields start and end (date) for each record. I need to select a range. Is it possible to do this using one filter?

silentsokolov commented 1 year ago

No. I think in your case, there is no need for a separate widget; just use the standard functionality.

quant12345 commented 1 year ago

I just think it’s unnecessary to specify the range for start and end separately. In theory, you need to filter from the minimum start to the maximum end, and therefore why two filters?

'no need for a separate widget' , what do you mean by this?

silentsokolov commented 1 year ago

In theory, you need to filter from the minimum start to the maximum end

I see... In any case, this library doesn't provide such functionality ((