django-adminfilters
Collection of extra filters for the Django admin site
https://user-images.githubusercontent.com/27282/153727131-d875f946-a8a8-4d89-be83-1d8cb5c9391a.mp4
Filters
- Autocomplete
- AutocompleteFilter
- Simple
- ValueFilter
- Combobox
- AllValuesComboFilter
- RelatedFieldComboFilter
- ChoicesFieldComboFilter
- Dates
- DateFilter
- DateInDateRange
- Radio
- AllValuesRadioFilter
- RelatedFieldRadioFilter
- ChoicesFieldRadioFilter
- BooleanRadioFilter
- Checkbox
- RelatedFieldCheckBoxFilter
- Multiple
- MultiValueFilter
- ManyToMany
- IntersectionFieldListFilter
- UnionFieldListFilter
- JSON
- JsonFieldFilter
- Number
- NumberFilter
- Special
- QueryStringFilter
- DjangoLookupFilter
- PermissionPrefixFilter
FYI
Filters management (save/retrieve), is handled by an optional application adminfilters.depot that,
due to the Django filters internal design, it uses GET method to save filter definition to the database.
When you use FilterDepotManager to save a filter, the call is idempotent but not safe.
Usage examples
class MyModel(models.Model):
index = models.CharField(max_length=255)
name = models.CharField(max_length=255)
age = models.IntegerField()
flag = models.CharField(default="1", choices=(("0", "Flag 1"), ("1", "Flag 2"))
household = models.ForeignKey("Household")
custom = JSONField(default=dict, blank=True)
class MyModelAdmin(ModelAdmin):
list_filter = (
FilterDepotManager, # needs `adminfilters.depot` app
QueryStringFilter,
DjangoLookupFilter,
("custom", JsonFieldFilter.factory(can_negate=False, options=True)),
("flag", ChoicesFieldComboFilter),
("household", AutoCompleteFilter)
("name", ValueFilter.factory(lookup="istartswith"),
("age", NumberFilter),
)
Run demo app
git clone https://github.com/saxix/django-adminfilters.git
cd django-adminfilters
python3 -m venv .venv
source .venv/bin/activate
make develop
make demo
Release files for django-adminfilters 2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_adminfilters-2.7.tar.gz | 27.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_adminfilters-2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:81.9 kB
Release files / django_adminfilters-2.7.tar.gz
| Download URL | django_adminfilters-2.7.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a825bc7cf7e067ecc5e90ff6968be4a14382c57e4d57f59a207928c8498f4f8
|
|
BLAKE2b-256 checksum How to use checksums |
514ed3c553833c917f5b0e022da3fb96760d05d8aa9755a70c03cfaa9c641e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2025.
Transparency logRelease files / django_adminfilters-2.7-py3-none-any.whl
| Download URL | django_adminfilters-2.7-py3-none-any.whl |
|---|---|
| Size | 54.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8323b6a6904ec7cf48faf40b4f61578e22210380953e050731de48211e74601
|
|
BLAKE2b-256 checksum How to use checksums |
8f1ea359d52ab2fcb8cf21ed1fa93cd663d66300b7948fc220c8a718beeb446c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2025.
Transparency log