--- id: django-ordered-model version: "3.7.4" license: unclear license_treatment: permissive maintenance: dormant --- # django-ordered-model — Allows Django models to be ordered and provides a simple admin interface for reordering them. License: permissive · Maintenance: dormant · Downloads: 719.4K/mo ## What it is and what it does django-ordered-model is a Django app that lets you add ordering to any model by inheriting from a base class instead of models.Model directly. It maintains an order field and provides methods to move instances relative to each other—up, down, to a specific position, above or below another instance, or to the top or bottom of the stack. It also supports subset ordering so you can order items independently within groups, such as each user's contacts ordered separately. The package includes a custom manager and queryset with additional filtering methods, and integrates with Django's admin interface for reordering. It uses Django's update() method for performance when shifting other objects' positions. The codebase is marked Production/Stable but maintenance is dormant with no releases since 2023-03-17. Use it for: - Manage a ranked or prioritized list of items in a Django app where users can reorder via admin. - Order contacts, tasks, or other entities independently per user or group using subset ordering. - Build a many-to-many relationship with custom ordering via a through model. - Implement a sortable list of questions or content blocks where position matters and can change dynamically. - Query for items above or below a threshold position without manually managing sort indices. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds ordering and reordering capabilities to Django models, with methods to move instances up, down, to specific positions, or relative to other instances, plus admin UI support. Yes, if you need model ordering in Django and can accept dormant maintenance. The package is stable, has no security vulnerabilities, installs with zero friction, and solves a common problem cleanly. However, verify compatibility with your Django version since the last release was 2023-03-17 and no updates are planned. ## Install pip install django-ordered-model uv add django-ordered-model poetry add django-ordered-model ## Installing django-ordered-model Before you install: Low friction install with no runtime dependencies. Maintenance is dormant—last release was 2023-03-17 and no commits since 2024-11-15—so expect no active bug fixes or feature updates, though marked Production/Stable. License in practice: Licensed under BSD (permissive), so you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions. Quickstart: pip install django-ordered-model # In settings.py, add 'ordered_model' to INSTALLED_APPS from django.db import models class Item(models.Model): name = models.CharField(max_length=100) # After inheriting from OrderedModel and migrating: foo = Item.objects.create(name="Foo") bar = Item.objects.create(name="Bar") foo.swap(bar) foo.up() foo.to(5) Requires Django to be installed and configured; models must be migrated after inheriting from OrderedModel. Verify before relying: - Whether the package works with Django versions released after 2023-03-17 - Whether subset ordering scales well with large datasets - Current compatibility with modern Python and Django releases ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 719.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django model ordering, reorder django objects, django admin sort interface, model position management, django ordered queryset, move model instances, django sequence control, django-extension, model-ordering, admin-ui [View on SkillFed](https://skillfed.io/packages/django-ordered-model) · [View on PyPI](https://pypi.org/project/django-ordered-model/)