Generic drag-and-drop sorting for the List, the Stacked- and the Tabular-Inlines Views in the Django Admin
Project description
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.
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 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.
To ask questions or reporting bugs, please read the contributor's guide.
License
Licensed under the terms of the MIT license.
Copyright © 2013-2022 Jacob Rief and contributors.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file django-admin-sortable2-2.0.4.tar.gz
.
File metadata
- Download URL: django-admin-sortable2-2.0.4.tar.gz
- Upload date:
- Size: 58.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01172fb486e4c65ec97f6f69c4f60cd751570ee38783b291ac70be6747d58d13 |
|
MD5 | 8d85d60620cd048014e05ffd852e304c |
|
BLAKE2b-256 | 50bbb73279b54297cdd2658ea2600337be9e21dc1fb0132362a822a45593d93e |
File details
Details for the file django_admin_sortable2-2.0.4-py3-none-any.whl
.
File metadata
- Download URL: django_admin_sortable2-2.0.4-py3-none-any.whl
- Upload date:
- Size: 67.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65e9cef37d2925637cde1614515da81440ad2720c340b2702ffd3f0f4a61b928 |
|
MD5 | 25cf3a489a8de36e84e471cde294fe44 |
|
BLAKE2b-256 | b69114548e9bc4b1266aa173c646b652b1907545d61e4470bbab3c288520502e |