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
File details
Details for the file django-closable_admin_filter-0.1.1.tar.gz.
File metadata
- Download URL: django-closable_admin_filter-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
061c42f60b35760dfe59381ba2fe2b8f701c58c314300c67b843ba8bf07cfe98
|
|
| MD5 |
16c4d5d38e74f5e2bfcf8533f7c231ab
|
|
| BLAKE2b-256 |
cb7df2f415fa96dfafad9d22dc89d2896474a0b7cdd88d86d4c4285d496e6924
|