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 installed apps in settings.py:
INSTALLED_APPS = [
# ...
'wagtail_filter_persistence',
# ...
]
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 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail_filter_persistence-0.1.4.tar.gz.
File metadata
- Download URL: wagtail_filter_persistence-0.1.4.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
067a8d8aeaae1c96dd4fe4627dd0f82106a653774c5853898a4cfadadf935c8b
|
|
| MD5 |
10f25d301867ae60c01072e8a6041592
|
|
| BLAKE2b-256 |
ca3cdfe646a757c4aa67faeb823ef68a54f0f6c79135f94d837b417a5fc9e052
|
File details
Details for the file wagtail_filter_persistence-0.1.4-py2.py3-none-any.whl.
File metadata
- Download URL: wagtail_filter_persistence-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9468a3d8d3bc9acff48c50dd3eac28691eb6b358fb8db5ddc954f06fd92bd25f
|
|
| MD5 |
c16e65d3dde6e8ed2c31eeb11c3bf514
|
|
| BLAKE2b-256 |
63caf90b8313c19cb2626e1559158e4ceaf91dee5d4e2eb770398b68ff930173
|