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

Add support for collapsable filter (Django >= 4.1) [Alternate Version] #120

Closed mgrdcm closed 6 months ago

mgrdcm commented 6 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.

It's like https://github.com/silentsokolov/django-admin-rangefilter/pull/119 but is the other way to do it mentioned in https://github.com/silentsokolov/django-admin-rangefilter/pull/119#issuecomment-2118986454.

silentsokolov commented 6 months ago

I like this version because it follows the style where only old templates are marked with a version, and the current ones have a regular name.

Thank you!

mgrdcm commented 6 months ago

You're welcome @silentsokolov and thanks for this library!