This Django package adds functionality for generic drag-and-drop ordering of items in the List, the Stacked- and the Tabular-Inlines Views of the Django Admin interface.
Check the demo:
This library offers simple mixin classes which enrich the functionality of any existing class inheriting from
admin.ModelAdmin
, admin.StackedInline
or admin.TabularInline
.
It thus makes it very easy to integrate with existing models and their model admin interfaces. Existing models can
inherit from models.Model
or any other class derived thereof. No special base class is required.
This is a major rewrite of this django-admin-sortable2. It replaces the client side part against Sortable.JS and thus the need for jQuery.
Replacing that library allowed me to add a new feature: Multiple items can now be dragged and dropped together.
https://github.com/jrief/django-admin-sortable2
Detailled documentation can be found on ReadTheDocs.
Before reporting bugs or asking questions, please read the contributor's guide.
Licensed under the terms of the MIT license.
Copyright © 2013-2022 Jacob Rief and contributors.