Generic drag-and-drop sorting for the List, the Stacked- and the Tabular-Inlines Views in the Django Admin
Project description
A replacement for django-admin-sortable using an unintrusive approach.
This plugin is a generic drag-and-drop ordering module for sorting objects in the List, the Stacked- and the Tabular-Inlines Views in the Django Admin interface.
This module offers simple mixin classes which enrich the functionality of any existing class derived from admin.ModelAdmin, admin.StackedInline or admin.TabluarInline.
Thus it makes it very easy to integrate with existing models and their model admin interfaces. Existing models can continue to inherit from models.Model. No special base class is required.
News
Version 0.5.0 changed its naming convention.
Unfortunately, because both libraries django-admin-sortable and dkango-admin-sortable2, use the same package name: adminsortable, it is rather difficult if not impossible to use them side-by-side in the same project during transition. It also means that all of my migration history has to be either rewritten or discarded, because the existing migrations reference adminsortable.SortableForeignKey, which does not exist in this package.
Project’s home
https://github.com/jrief/django-admin-sortable2.
Detailled documentation on ReadTheDocs.
To ask questions or reporting bugs, please use the issue tracker.
Build status
Why should You use it?
All available plugins which add functionality to make list views for the Django admin interface sortable, offer a base class to be used instead of models.Model. This abstract base class then contains a hard coded position field, additional methods, and meta directives.
This inhibits to create sortable abstract models. django-admin-sortable2 does not have these restrictions.
License
Copyright © 2015 Jacob Rief.
MIT licensed.
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
File details
Details for the file django-admin-sortable2-0.5.1.tar.gz
.
File metadata
- Download URL: django-admin-sortable2-0.5.1.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ecc0fbf7cf82e0bd038efedf6c3785719a1e8da9c5f81313ec6182a89641c1 |
|
MD5 | ee45619bf91b5c4f31e55b31ee2e2d16 |
|
BLAKE2b-256 | 899e133a02ddaf4f3676a13fe34e7225c9ed492f815a441d35882219b413e9fb |