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

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 inherit from models.Model or any other class derived thereof. No special base class is required.

News in Version 0.6.1

  • Fixed a regression introduced in 0.6.0: Checking for assigned global singletons.

News in Version 0.6.0

Many Thanks to Michał Przybyś for adding these two features:

  • Compatible with Django 1.9.

  • In the list view, it now is possible to move items to any arbitrary page.

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

Build Status Downloads

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

This version

0.6.1

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-0.6.1.tar.gz (47.3 kB view details)

Uploaded Source

File details

Details for the file django-admin-sortable2-0.6.1.tar.gz.

File metadata

File hashes

Hashes for django-admin-sortable2-0.6.1.tar.gz
Algorithm Hash digest
SHA256 6ab567d2ca14e7bd33f27c8e9bb6071380ffe83e842fce0af6a79fc44a0c3b4b
MD5 1831f0cbeeb35184dca2f93ae82ff200
BLAKE2b-256 e2c151c1d4f7cea62a73061fae5df61c5b9376f996d23179a3ccdd823e266cea

See more details on using hashes here.

Supported by

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