No project description provided
Project description
django-admin-numeric-filter
Getting started
- Install package directly from GitHub
pip install git+https://git@github.com/lukasvinclav/django-admin-numeric-filter.git
- Add admin_numeric_filter into INSTALLED_APPS in your setting file
Sample admin configuration
from django.contrib import admin
from admin_numeric_filter.admin import SingleNumericFilter, RangeNumericFilter, SliderNumericFilter
from .models import YourModel
@admin.register(YourModel)
class YourModelAdmin(admin.ModelAdmin):
list_filter = (
('field_A', SingleNumericFilter), # Single field search, __gte lookup
('field_B', RangeNumericFilter), # Range search, __gte and __lte lookup
('field_C', SliderNumericFilter), # Same as range above but with slider
)
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 Distribution
Close
Hashes for django-admin-numeric-filter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443e8b0956d9dbf26406594d964cb79413a0b424e84fb28343f9ed17c6acfd38 |
|
MD5 | a2d7282aed42ab11ffd6cde55a25ddbb |
|
BLAKE2b-256 | 508b452f9d882da8c8759910f0e34fc5f63c54c51d79e66a48e5c29da8fbbe1b |