A simple Django app to add hide/show ability to the filter in Django admin.
Project description
=====
Closable Admin Filter
=====
When there are too many fields in Django admin and it's necessary to have the filter, it turns to very ugly situation, when filter `flies` over the fields.
So here's a simple Django app to provide a "HIDE" button for the filter.
Quick start
-----------
1. Add "closable_admin_filter" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'closable_admin_filter',
)
2. Add the AdminClosableFilterMixin to your inherited from ModelAdmin class like this::
class MyAdmin(AdminClosableFilterMixin, admin.ModelAdmin):
...
3. Visit http://your.domain/admin/your_app/your_model/ to look at the result.
Closable Admin Filter
=====
When there are too many fields in Django admin and it's necessary to have the filter, it turns to very ugly situation, when filter `flies` over the fields.
So here's a simple Django app to provide a "HIDE" button for the filter.
Quick start
-----------
1. Add "closable_admin_filter" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'closable_admin_filter',
)
2. Add the AdminClosableFilterMixin to your inherited from ModelAdmin class like this::
class MyAdmin(AdminClosableFilterMixin, admin.ModelAdmin):
...
3. Visit http://your.domain/admin/your_app/your_model/ to look at the result.
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-closable_admin_filter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ce37ba0c1127d2d24790d9c5043de3e791919f3ea61be218824a9b52781b7ac |
|
MD5 | 70366bc2756fd250688d170f86c73c4d |
|
BLAKE2b-256 | db2ca27be0d17c88125afad51532ecc1a843fc421275093da919a58c0bc2400c |