Skip to main content

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::


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-closable_admin_filter, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-closable_admin_filter-0.1.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page