{"id":23556,"library":"django-admin-sortable","title":"django-admin-sortable","description":"A Django library that provides drag-and-drop sorting for models and inline models in the Django admin interface. Version 2.3 is the latest stable release, but the project appears to be in maintenance mode with infrequent updates.","status":"maintenance","version":"2.3","language":"python","source_language":"en","source_url":"https://github.com/iambrandontaylor/django-admin-sortable","tags":["django","admin","sortable","drag-and-drop","inline-sorting"],"install":[{"cmd":"pip install django-admin-sortable","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Required: works with Django 1.11+ but best with 2.2 LTS or earlier; Django 3.x+ may have issues.","package":"Django","optional":false}],"imports":[{"wrong":"from adminsortable.admin import SortableAdminMixin","symbol":"SortableAdminMixin","correct":"from adminsortable.admin import SortableAdminMixin"},{"symbol":"SortableTabularInline","correct":"from adminsortable.admin import SortableTabularInline"},{"symbol":"SortableStackedInline","correct":"from adminsortable.admin import SortableStackedInline"}],"quickstart":{"code":"# settings.py\nINSTALLED_APPS = [\n    ...\n    'adminsortable',\n]\n\n# models.py\nfrom django.db import models\nfrom adminsortable.models import Sortable\n\nclass Category(Sortable):\n    name = models.CharField(max_length=100)\n\n    class Meta(Sortable.Meta):\n        pass\n\n    def __str__(self):\n        return self.name\n\n# admin.py\nfrom django.contrib import admin\nfrom adminsortable.admin import SortableAdminMixin\nfrom .models import Category\n\nclass CategoryAdmin(SortableAdminMixin, admin.ModelAdmin):\n    list_display = ('name', 'my_order')\n\nadmin.site.register(Category, CategoryAdmin)\n\n# After migrating, run:\npython manage.py reorder <app_label> <model_name>","lang":"python","description":"Basic setup: add app, define Sortable model, use SortableAdminMixin in admin, and reorder data."},"warnings":[{"fix":"Ensure model inherits from `adminsortable.models.Sortable` and includes `class Meta(Sortable.Meta): pass`","message":"Sortable model must inherit from Sortable (not SortableMixin) and set Meta as shown. Failing to include Sortable.Meta will cause errors like 'No order field found'.","severity":"breaking","affected_versions":"all"},{"fix":"Switch to django-admin-sortable2 for better Django 3+/4+ support.","message":"This library is not actively maintained. It may not work with Django 3.x+ due to admin template changes. Consider alternatives like django-admin-sortable2 (django-admin-sortable2).","severity":"deprecated","affected_versions":"2.3 and earlier"},{"fix":"Ensure parent model uses Sortable mixin or admin uses SortableAdminMixin.","message":"Inline sorting (SortableTabularInline, SortableStackedInline) often fails if the parent model is not also sortable. Inline sort order may not save correctly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.3':26 'admin':3,23,45 'appear':35 'django':2,6,22,44 'django-admin-sort':1 'drag':11,48 'drag-and-drop':10,47 'drop':13,50 'infrequ':42 'inlin':18,52 'inline-sort':51 'interfac':24 'latest':29 'librari':7 'mainten':39 'mode':40 'model':16,19 'project':34 'provid':9 'releas':31 'sort':14,53 'sortabl':4,46 'stabl':30 'updat':43 'version':25","created_at":"2026-05-01T08:08:24.152389+00:00","updated_at":"2026-05-01T08:08:24.152389+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmph9pbud_m/venv/lib/python3.12/site-packages/adminsortable/admin.py\", line 8, in <module>\n    from django.contrib.contenttypes.admin import (GenericStackedInline,\n  File \"/tmp/tmph9pbud_m/venv/lib/python3.12/site"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/iambrandontaylor/django-admin-sortable","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-admin-sortable/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}