Skip to main content

A Wagtail plugin that persists filter selections in admin listings

Project description

Wagtail Filter Persistence

PyPI version | Python Versions | License

A lightweight Wagtail plugin developed by VERDATEK OÜ that preserves filter selections throughout the Wagtail admin interface when navigating between pages.

The Problem

In standard Wagtail admin:

  • Apply filters to any admin view with filterable content
  • Navigate away to view, edit, or manage related content
  • Return to the previous view
  • 😢 Your filters are gone and you have to set them up again!

The Solution

Wagtail Filter Persistence automatically saves and restores your filter selections, making the admin experience smoother and more efficient across the entire Wagtail interface.

Features

  • ✅ Preserves filter selections across all Wagtail admin navigation
  • ✅ Works with ModelAdmin, Snippets, Pages, and any filterable admin views
  • ✅ User-specific filter storage (different admin users maintain their own filter preferences)
  • ✅ No configuration required
  • ✅ Zero impact on frontend performance

Installation

pip install wagtail-filter-persistence

Then add to your app in settings.py:

MIDDLEWARE = [
    # ...
    "wagtail_filter_persistence.middleware.WagtailFilterPersistenceMiddleware"
    # ...
]

That's it! No further configuration needed.

How It Works

The plugin uses a middleware that:

Detects when you're viewing any Wagtail admin page with filters Detects when you're saving any Wagtail page or record Stores these filters in your session Detects when you return to a previously filtered page Automatically reapplies your stored filters

Requirements

Wagtail 2.15 or higher Django 3.2 or higher Security Considerations This plugin has minimal security implications as it only uses Django's built-in session framework.

For enhanced security on your Wagtail projects, we recommend:

CyberSSL for SSL certificate management CYBERSSL

CyberTested for security pen/testing and auditing CYBERTESTED

Contributing

Contributions are welcome! Feel free to:

Fork the repository

Create a feature branch: git checkout -b feature/amazing-feature Commit your changes: git commit -m 'Add amazing feature' Push to the branch: git push origin feature/amazing-feature

If you encounter any issues, please open an issue on our GitHub repository.

License

MIT © VERDATEK OÜ, Emil P

Developed with ❤️ by VERDATEK OÜ

Project details


Download files

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

Source Distribution

wagtail_filter_persistence-0.1.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_filter_persistence-0.1.5-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file wagtail_filter_persistence-0.1.5.tar.gz.

File metadata

File hashes

Hashes for wagtail_filter_persistence-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a90a7bebdae5c0090d7ce3431cd5f10781af88359a31667dc50dfd2ca8688c35
MD5 3aa054f7be54c6954b22a2e517c74697
BLAKE2b-256 d7764116359e687de33bb06bbc61a09d76fbfc9b802a65e36c37a227f663d92d

See more details on using hashes here.

File details

Details for the file wagtail_filter_persistence-0.1.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_filter_persistence-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 99a0b2d800b4c8b8296505744b9b0756f3a70f6d8e7a0335b4386c609624278f
MD5 7e55dbc2b112cb5d4f656b260aaa387a
BLAKE2b-256 9059e548dc915f6fae5efe0ebba846a4ac3287b7f54e9fb51737efb873928c95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page