https://github.com/jrief/django-admin-sortable2
Generic drag-and-drop ordering for objects in the Django admin interface
https://github.com/jrief/django-admin-sortable2
django django-admin python sorting
Last synced: 1 day ago
JSON representation
Generic drag-and-drop ordering for objects in the Django admin interface
- Host: GitHub
- URL: https://github.com/jrief/django-admin-sortable2
- Owner: jrief
- License: mit
- Created: 2013-07-07T21:26:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T22:59:10.000Z (12 months ago)
- Last Synced: 2024-05-11T22:44:56.988Z (11 months ago)
- Topics: django, django-admin, python, sorting
- Language: Python
- Homepage: https://django-admin-sortable2.readthedocs.io/en/latest/
- Size: 4.89 MB
- Stars: 707
- Watchers: 19
- Forks: 177
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-django - django-admin-sortable2 - Generic drag-and-drop ordering for objects in the Django admin interface. (Third-Party Packages / Admin)
README
# django-admin-sortable2
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.[](https://github.com/jrief/django-admin-sortable2/actions/workflows/tests.yml)
[](https://pypi.python.org/pypi/django-admin-sortable2)
[](https://pypi.python.org/pypi/django-admin-sortable2)
[](https://pypi.python.org/pypi/django-admin-sortable2)
[](https://img.shields.io/pypi/dm/django-admin-sortable2.svg)
[](https://github.com/jrief/django-admin-sortable2/blob/master/LICENSE)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.## Version 2.0
This is a major rewrite of this **django-admin-sortable2**. It replaces the client side part against
[Sortable.JS](https://sortablejs.github.io/Sortable/) 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.
## Project's Home
https://github.com/jrief/django-admin-sortable2
Detailled documentation can be found on [ReadTheDocs](https://django-admin-sortable2.readthedocs.org/en/latest/).
Before reporting bugs or asking questions, please read the
[contributor's guide](https://django-admin-sortable2.readthedocs.io/en/latest/contributing.html).## License
Licensed under the terms of the MIT license.
Copyright © 2013-2022 Jacob Rief and contributors.
Please follow me on
[](https://twitter.com/jacobrief)
for updates and other news.