Install & Compatibility
Where this runs
tested against v2.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 68.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.5s · import 0.000s · 69MB
67MB installed
● package 67MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SortableAdminMixin
✓ from adminsortable.admin import SortableAdminMixin
✗ from adminsortable.admin import SortableAdminMixin
SortableTabularInline
✓ from adminsortable.admin import SortableTabularInline
SortableStackedInline
✓ from adminsortable.admin import SortableStackedInline
Basic setup: add app, define Sortable model, use SortableAdminMixin in admin, and reorder data.
# settings.py
INSTALLED_APPS = [
...
'adminsortable',
]
# models.py
from django.db import models
from adminsortable.models import Sortable
class Category(Sortable):
name = models.CharField(max_length=100)
class Meta(Sortable.Meta):
pass
def __str__(self):
return self.name
# admin.py
from django.contrib import admin
from adminsortable.admin import SortableAdminMixin
from .models import Category
class CategoryAdmin(SortableAdminMixin, admin.ModelAdmin):
list_display = ('name', 'my_order')
admin.site.register(Category, CategoryAdmin)
# After migrating, run:
python manage.py reorder <app_label> <model_name>
Upgrade
Version history
2.3latest on PyPI · released Dec 22, 2021
Audit
Dependencies
DjangorequiredRequired: works with Django 1.11+ but best with 2.2 LTS or earlier; Django 3.x+ may have issues.