Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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

Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_numericfieldlistfilter-0.1-py2-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 Apr 30, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page