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.

### 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
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.

### 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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_numericfieldlistfilter-0.1-py2-none-any.whl.
File metadata
- Download URL: django_numericfieldlistfilter-0.1-py2-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a667686964ef6e836a5e24a3293d66316651e4fc5f9f52ece719b596dc6d560b
|
|
| MD5 |
2f6dea50f598febe29aa444ed5c6291a
|
|
| BLAKE2b-256 |
ec8edb57d80d7f356649f08a1c05934727ef7e8cee799f86ca3bd4067c4accf2
|