Skip to content

nm-packages/wagtail-orderable-viewset

Repository files navigation

Wagtail Orderable ViewSet

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.

Overview

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

Features

  • Drag-and-drop ordering for SnippetViewSet and ModelViewSet
  • An IncrementingOrderable model mixin

Installation

pip install wagtail-orderable-viewset

Quick Start

See docs/example.md for a full example project, including model/snippet setup and data seeding.

Requirements

  • Python 3.9+
  • Django 4.2+
  • Wagtail 7.0+

Development

Clone the repository:

git clone https://github.com/nickmoreton/wagtail-orderable-viewset.git

and change to the directory: cd wagtail-orderable-viewset

Setup

Using UV https://docs.astral.sh/uv/

uv sync

Running Tests

uv run python runtests.py

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT License. See LICENSE for details.

Acknowledgments

Inspired by wagtail-orderable and built for Wagtail's ViewSet system.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published