jmb.filter
jmb.filter is a fork of django-filter whose main goal is to make life easy integrating django_filter in the django admin interface creating advanced search forms based on a description similar to search_list definition.
jmb.filter is a reusable Django application for allowing users to filter querysets dynamically.
Documentation on thunder-site.
Original documentation on read the docs
Requirements
Python 2.7+
Django 1.4+
Installation
Install using pip:
pip install jmb.filter
Or clone the repo and add to your PYTHONPATH:
hg clone https://hg@bitbucket.org/jumboteam/jmb.filters
Usage
jmb.filter can be used for generating interfaces similar to the Django admin’s list_filter interface. It has an API very similar to Django’s ModelForms. For example, if you had a Product model you could have a filterset for it with the code:
import jmb.filters
class ProductFilter(jmb.filters.FilterSet):
class Meta:
model = Product
fields = ['name', 'price', 'manufacturer']
And then in your view you could do:
def product_list(request):
filter = ProductFilter(request.GET, queryset=Product.objects.all())
return render_to_response('my_app/template.html', {'filter': filter})
Support
Metadata
Release files for jmb.filters 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| jmb.filters-0.1.7.tar.gz | 666.0 kB | Without provenance | Details for jmb.filters-0.1.7.tar.gz |
Release files / jmb.filters-0.1.7.tar.gz
| Download URL | jmb.filters-0.1.7.tar.gz |
|---|---|
| Size | 666.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
378a0277effbc3ab4ee7d88f03b84ed8f1472df5f705b4f1b9439b67d41d5108
|
|
BLAKE2b-256 checksum How to use checksums |
167ca873cda59e003b45442df831e7e5e1f59c0449d4c0afee681367e7318a49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jmb.filters 0.1.7
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.