Django Admin Sortable2

screenshot of Django Admin Sortable2
django

Generic drag-and-drop ordering for objects in the Django admin interface

Overview

The django-admin-sortable2 package enhances the Django Admin interface by adding drag-and-drop ordering functionality to items in List, Stacked, and Tabular-Inlines Views. This package simplifies integration with existing models and their admin interfaces, making it effortless to reorder items. With the latest version 2.0, the package has undergone a major rewrite, replacing the client-side component with Sortable.JS and eliminating the need for jQuery.

Features

  • Drag-and-Drop Ordering: Easily reorder items within the Django Admin interface by dragging and dropping them.
  • Works with Admin Models: Can enhance any existing class inheriting from admin.ModelAdmin, admin.StackedInline, or admin.TabularInline.
  • Multiple Items Drag-and-Drop: Version 2.0 introduces the feature to drag and drop multiple items at once.

Summary

The django-admin-sortable2 package is a useful addition to Django Admin, providing a simple way to reorder items using drag-and-drop functionality. With its latest version 2.0, the package has been improved to support multiple items drag-and-drop and eliminate the need for jQuery. By following the installation guide and integrating it with your existing admin models, you can enhance the user experience of managing and ordering items within the Django Admin interface.

django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.