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!

A NumericFieldListFilter for Django admin

Project Description
# Django-NumericFieldListFilter

Django-NumericFieldListFilter is a plugin for Django. It allows easy filtering of numeric fields (IntegerField, FloatField and DecimalField) inside the Django admin.

For each numeric field, two inputs will be added to the admin, representing a minimum and maximum value which you can filter on.

![Screenshot of NumericFieldListFilter](http://i.imgur.com/y6U9uCI.png)

### Installation

```sh
$ pip install django-numericfieldlistfilter
```

You'll need Django version 1.8 or greater.

### Usage
1. Add `djangonumericfieldlistfilter` to the installed apps:

```python
INSTALLED_APPS = (
...
'djangonumericfieldlistfilter',
...
)
```
2. Use the `NumericModelAdmin` as the base class of your admin classes:
```python
from djangonumericfieldlistfilter.options import NumericModelAdmin

class TransactionAdmin(NumericModelAdmin):
...
```
3. Add your numeric field to the list_filter variable:
```python
list_filter = (
...
'price_paid'
...
)
```

### Version
0.1

License
-------
MIT
Release History

Release History

This version
History Node

0.1

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
django_numericfieldlistfilter-0.1-py2-none-any.whl (6.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Apr 30, 2016

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