Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

jmb.filters is a reusable Django application for allowing users to filter querysets dynamically.

Project Description

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

Release History

Release History

This version
History Node

0.1.7

History Node

0.1.6

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jmb.filters-0.1.7.tar.gz (666.0 kB) Copy SHA256 Checksum SHA256 Source Apr 17, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting