Skip to main content

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.

Build Status PyPI version Python versions Django versions Downloads Software license

Check the demo:

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.

Please follow me on Twitter Follow for updates and other news.

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

django_admin_sortable2-2.3.1.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_sortable2-2.3.1-py3-none-any.whl (107.0 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_sortable2-2.3.1.tar.gz.

File metadata

  • Download URL: django_admin_sortable2-2.3.1.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for django_admin_sortable2-2.3.1.tar.gz
Algorithm Hash digest
SHA256 e397d08606f9e0da73e52661b841021ecab21be6f74783408e625ccddfe975af
MD5 68d9967b18cbd9f663822c32ebdbd220
BLAKE2b-256 e209cc2d19412e47aaf627f54f9b5b544de73553bd71e25d417dd62e91b36edd

See more details on using hashes here.

File details

Details for the file django_admin_sortable2-2.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_sortable2-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5784f441f3532013438c3c3226fbccc39b9c733f867b26a5f477d6b05f734b93
MD5 82e2e41827b9bde6419111f30490beb2
BLAKE2b-256 c8774396e853c3ee3b1264a2bb23f9b1934194ab750c6ecd30aa194b53dec7b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page