silentsokolov / django-admin-rangefilter

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

Add support for collapsable filter (Django >= 4.1) #119

Closed mgrdcm closed 4 months ago

mgrdcm commented 4 months ago

The markup for change list filters changed between 4.0 and 4.1.

This is a change to add support for that, along with minor updates to styling to match newer versions of Django.

mgrdcm commented 4 months ago

@silentsokolov I tried to make this as few changes as possible, but that meant making the Django>=4.1 case be an exception rather than the rule which is slightly different from how the Django<=1.8 case was handled. Happy to instead move the existing templates and update the default ones.

UPDATE: I went ahead and did a PR like that so you could just choose: https://github.com/silentsokolov/django-admin-rangefilter/pull/120

mgrdcm commented 4 months ago

Closed because https://github.com/silentsokolov/django-admin-rangefilter/pull/120 was used instead: https://github.com/silentsokolov/django-admin-rangefilter/pull/120#issuecomment-2119123974