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.
Before reporting bugs or asking questions, 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.2.3.tar.gz
.
File metadata
- Download URL: django_admin_sortable2-2.2.3.tar.gz
- Upload date:
- Size: 67.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f95a956b5c23df2a46449f0a3268d47408a641cfb45961cde0c41d2a686397 |
|
MD5 | 1080c97c865d0bba61ca21eab7229a14 |
|
BLAKE2b-256 | f6c4083425c75cf5039f390a34897acc2640b3cf5784795288439f2454bdb039 |
File details
Details for the file django_admin_sortable2-2.2.3-py3-none-any.whl
.
File metadata
- Download URL: django_admin_sortable2-2.2.3-py3-none-any.whl
- Upload date:
- Size: 88.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bda5f8f73590f7696595a86fc23c145d7c96b68fbb43478c74376484ee12ce81 |
|
MD5 | 45f9e219f63251d8758942c20f4240e1 |
|
BLAKE2b-256 | 574dff471dfefeeee49b3af13e42200ed4a52f4ccbb1b9d5ba05e0393f002268 |