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. Install the package using::
pip install django-closable_admin_filter
2. Add "closable_admin_filter" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'closable_admin_filter',
)
3. Add the AdminClosableFilterMixin to your inherited from ModelAdmin class like this::
class MyAdmin(AdminClosableFilterMixin, admin.ModelAdmin):
...
4. Visit http://your.domain/admin/your_app/your_model/ to enjoy 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. Install the package using::
pip install django-closable_admin_filter
2. Add "closable_admin_filter" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'closable_admin_filter',
)
3. Add the AdminClosableFilterMixin to your inherited from ModelAdmin class like this::
class MyAdmin(AdminClosableFilterMixin, admin.ModelAdmin):
...
4. Visit http://your.domain/admin/your_app/your_model/ to enjoy 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061c42f60b35760dfe59381ba2fe2b8f701c58c314300c67b843ba8bf07cfe98 |
|
MD5 | 16c4d5d38e74f5e2bfcf8533f7c231ab |
|
BLAKE2b-256 | cb7df2f415fa96dfafad9d22dc89d2896474a0b7cdd88d86d4c4285d496e6924 |