django-nested-inline
Recursive nesting of inline forms for Django Admin
What it is and what it does
django-nested-inline extends Django's admin interface to support editing of nested foreign-key relationships across multiple levels in a single form. Instead of navigating between separate admin pages for each related model, you can edit a parent object and all its nested children (and grandchildren, etc.) inline within one hierarchical form. The package provides NestedStackedInline and NestedModelAdmin classes that replace Django's standard inline and ModelAdmin classes.
The package supports Django versions through 4.1 and Python versions from 2.7 through 3.11. It carries no external runtime dependencies beyond Django itself, making it lightweight to integrate into existing projects. However, it is currently dormant: the last release was in March 2023 and the repository has not received commits since December 2023, so it may require maintenance work to support newer Django versions.
Use it for:
- Edit multi-level organizational hierarchies (departments → teams → members) in a single admin form
- Manage nested product categories or taxonomies with multiple levels of subcategories
- Build nested comment threads or discussion forums where replies can be edited alongside parent comments
- Administer hierarchical permission structures or role-based access control trees
- Manage nested configuration or settings structures with parent and child configuration objects
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Enables nested inline editing in Django admin, allowing you to edit related model hierarchies multiple levels deep within a single admin form.
Yes, if you are actively maintaining a Django project on version 4.1 or earlier and need nested inline editing. The package is lightweight, has no external dependencies, and carries a permissive license. However, proceed with caution if you require support for Django 4.2+ or Python 3.12+: the dormant maintenance status means you may need to fork or patch it yourself for newer framework versions.
Install
django-nested-inline on PyPI
pip
pip install django-nested-inlineuv
uv add django-nested-inlinepoetry
poetry add django-nested-inlineInstalling django-nested-inline
Before you install
Low install friction with no runtime dependencies. Dormant maintenance status: last release was 2023-03-14 and last commit 2023-12-15. Repository remains active (346 stars, not archived) but receives no ongoing updates.
License in practice
MIT License (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install django-nested-inline
# In settings.py
INSTALLED_APPS = [
...,
'nested_inline',
]
# In admin.py
from django.contrib import admin
from nested_inline.admin import NestedStackedInline, NestedModelAdmin
class ChildInline(NestedStackedInline):
model = ChildModel
fk_name = 'parent'
class ParentAdmin(NestedModelAdmin):
inlines = [ChildInline]
admin.site.register(ParentModel, ParentAdmin)
Requires Django to be installed separately; the package provides admin UI extensions only and does not bundle Django as a dependency.
Verify before relying
- Compatibility with Django versions released after 4.1 (last tested version in changelog)
- Whether the package works with Python 3.12+ releases despite classifiers listing only up to 3.11
- Current status of issues #130, #149, #114, #150, #147 mentioned in changelog
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 1,249 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,480/month — #13,150 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_nested_inline-0.4.6-py2.py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
django-reverse-adminAdds reverse inline support to Django admin for…
permissive · top 15,000 on PyPI
django-nested-adminExtends Django's admin interface to support…
permissive · top 5,000 on PyPI
django-ordered-modelAdds ordering and reordering capabilities to…
permissive · top 15,000 on PyPI
drf-writable-nestedExtends Django REST Framework serializers to…
permissive · top 15,000 on PyPI
django-nonrelated-inlinesProvides Django admin inline classes that let…
permissive · top 15,000 on PyPI
django-admin-inline-paginator-plusAdds pagination to Django admin inline forms,…
permissive · top 15,000 on PyPI
django-admin-autocomplete-filterAdds autocomplete-based filtering to Django…
copyleft · top 15,000 on PyPI
django-admin-inline-paginatorAdds pagination controls to Django admin inline…
permissive · top 5,000 on PyPI
django-tree-queriesQuery hierarchical tree structures in Django…
permissive · top 15,000 on PyPI
crispy-bootstrap3Provides Bootstrap 3 HTML templates for…
permissive · top 15,000 on PyPI