Skip to main content
django-valueinlist-filter
=========================

Queryset can be filtered by a given list on the django admin page, just like: qs.filter(field__in=[list]).

Installation
------------

[sudo] pip install django-valueinlist-filter


Add valueinlist_filter to settings.INSTALLED_APPS:

INSTALLED_APPS = (
...
'valueinlist_filter'
)

And then, set a CharField field in a model like this:

class Model(models.Model):
...
serial_number = models.CharField(max_length=32)


If you want to filter the **serial_number** field by a given value list(split string by space), you can bind ValueInListFilter to this field:


from valueinlist_filter.filter import ValueInListFilter
from django.contrib import admin
from models import Model

class ModelAdmin(admin.ModelAdmin):
list_filter = (
('serial_number', ValueInListFilter), # bind filter to CharField
...
)

Finally, you will get a textarea form on the filter side bar, the textarea's change event will trigger form.

Added a 'screenshot.png' picture.

Metadata

Release files for django-valueinlist-filter 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-valueinlist-filter 0.1.3
File Size Uploaded Provenance Actions
django-valueinlist-filter-0.1.3.tar.gz 3.0 kB Without provenance Details for django-valueinlist-filter-0.1.3.tar.gz

Release files / django-valueinlist-filter-0.1.3.tar.gz

Download URL django-valueinlist-filter-0.1.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ed9c3b4eee0c2e96c3d2699250eb318fa6da5baba52fabb916e76c2fb14d26
BLAKE2b-256 checksum
How to use checksums
ddfea76c71698afae9088e4b00c0320f6cb1ee203f1704837a7635ad27ca8320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-valueinlist-filter 0.1.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page