skillfed

django-admin-rangefilter

django-admin-rangefilter app, add the filter by a custom date range on the admin UI.

django-admin-rangefilter v0.14.0 1.4M downloads/30d#3,998 on PyPI748
Permissive license MIT Active released

What it is and what it does

django-admin-rangefilter is a Django app that extends the admin interface with specialized filter widgets for date, datetime, and numeric ranges. It integrates directly into Django's ModelAdmin list_filter configuration, allowing developers to replace standard dropdown filters with interactive range pickers that let users select start and end dates or values. The package has no runtime dependencies beyond Django itself.

The package provides several filter builders—DateRangeFilterBuilder, DateTimeRangeFilterBuilder, NumericRangeFilterBuilder, and DateRangeQuickSelectListFilterBuilder—that can be attached to model fields in the admin. It also integrates with django-csp when present to add nonces to inline styles and scripts for Content-Security-Policy compliance. Installation is straightforward: add the package to INSTALLED_APPS and configure filters on your ModelAdmin classes.

Use it for:

  • Filter blog posts or articles by creation date range in the admin interface.
  • Allow admins to view transactions or events within a specific numeric value range.
  • Provide quick-select date range options for common filtering tasks.
  • Combine datetime range filters with custom default start and end dates for admin workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds date range, datetime range, and numeric range filters to Django's admin interface, allowing users to filter model lists by custom date or value ranges.

Yes. The package is actively maintained, has no external dependencies, carries a permissive MIT license, and solves a common Django admin UX problem. It's in the top 5000 PyPI packages by download volume and has been stable since its early releases.

Install

django-admin-rangefilter on PyPI

pip

pip install django-admin-rangefilter

uv

uv add django-admin-rangefilter

poetry

poetry add django-admin-rangefilter

Installing django-admin-rangefilter

Before you install

Low friction installation with no runtime dependencies. Actively maintained with recent releases.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install django-admin-rangefilter

Add 'rangefilter' to INSTALLED_APPS in settings.py

In admin.py:
from rangefilter.filters import DateRangeFilterBuilder
from django.contrib import admin
from .models import Post

@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
    list_filter = (("created_at", DateRangeFilterBuilder()),)

Requires Django 1.11+ and Python 3.6+

Verify before relying

  • Whether the range filter UI works with all modern Django admin themes and customizations.
  • Performance impact when filtering large datasets with many range filter instances.

Package facts

License MIT (permissive)
Python support supports the current Python release (!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 13 days since the last release
Last repo commit
First released
Downloads 1,365,991/month — #3,998 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_admin_rangefilter-0.14.0-py2.py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities

Tags

django admin date range filterdjango admin numeric range filterdjango admin custom filtersdjango admin date pickerdjango admin filtering ui
django-admin-uifiltering

More Utilities packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

charset-normalizer

Detects and normalizes text encoding from…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

Pygments

Pygments is a syntax highlighter that colorizes…

permissive · top 100 on PyPI

six

Six provides utility functions to write Python…

permissive · top 100 on PyPI

django-admin-autocomplete-filter

Adds autocomplete-based filtering to Django…

copyleft · top 15,000 on PyPI

django-more-admin-filters

Provides a collection of Django admin filter…

permissive · top 15,000 on PyPI

django-admin-list-filter-dropdown

Renders Django admin list filters as dropdown…

permissive · top 5,000 on PyPI

django-filter

Django-filter adds dynamic QuerySet filtering…

permissive · top 5,000 on PyPI

django-extensions

Provides a collection of custom management…

permissive · top 5,000 on PyPI

django-adminplus

Adds custom admin views to Django's admin…

permissive · top 5,000 on PyPI

djangoql

DjangoQL provides an advanced search query…

permissive · top 15,000 on PyPI

django-object-actions

Adds custom action buttons to Django admin…

permissive · top 5,000 on PyPI

django-phonenumbers

Provides a Django model field and form field…

permissive · top 15,000 on PyPI

django-admin-csvexport

Adds a Django admin action that exports…

permissive · top 15,000 on PyPI