Add drag-and-drop ordering to Wagtail's SnippetViewSet and ModelViewSet in the admin panel.
Note: the feature is planned for a future release of Wagtail core.
Wagtail Orderable ViewSet brings, AJAX-powered ordering to Wagtail's ViewSet system. It is inspired by wagtail-orderable and designed for Wagtail 7+ and Django 4.2+.
Wagtail core may eventually include this functionality: wagtail/wagtail#12857
- Drag-and-drop ordering for SnippetViewSet and ModelViewSet
- An IncrementingOrderable model mixin
pip install wagtail-orderable-viewsetSee docs/example.md for a full example project, including model/snippet setup and data seeding.
- Python 3.9+
- Django 4.2+
- Wagtail 7.0+
Clone the repository:
git clone https://github.com/nickmoreton/wagtail-orderable-viewset.gitand change to the directory: cd wagtail-orderable-viewset
Using UV https://docs.astral.sh/uv/
uv syncuv run python runtests.pyContributions are welcome! Please open an issue or submit a pull request.
MIT License. See LICENSE for details.
Inspired by wagtail-orderable and built for Wagtail's ViewSet system.