skillfed

django-nested-inline

Recursive nesting of inline forms for Django Admin

django-nested-inline v0.4.6 97.5K downloads/30d#13,150 on PyPI346
Permissive license MIT License DORMANT released

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-inline

uv

uv add django-nested-inline

poetry

poetry add django-nested-inline

Installing 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

Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

django admin nested inlinesrecursive inline forms djangomulti-level admin editingdjango nested model adminhierarchical inline editingdjango admin foreign key nestingdeep inline relationships
django-adminform-editinghierarchical-data

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

django-reverse-admin

Adds reverse inline support to Django admin for…

permissive · top 15,000 on PyPI

django-nested-admin

Extends Django's admin interface to support…

permissive · top 5,000 on PyPI

django-ordered-model

Adds ordering and reordering capabilities to…

permissive · top 15,000 on PyPI

drf-writable-nested

Extends Django REST Framework serializers to…

permissive · top 15,000 on PyPI

django-nonrelated-inlines

Provides Django admin inline classes that let…

permissive · top 15,000 on PyPI

django-admin-inline-paginator-plus

Adds pagination to Django admin inline forms,…

permissive · top 15,000 on PyPI

django-admin-autocomplete-filter

Adds autocomplete-based filtering to Django…

copyleft · top 15,000 on PyPI

django-admin-inline-paginator

Adds pagination controls to Django admin inline…

permissive · top 5,000 on PyPI

django-tree-queries

Query hierarchical tree structures in Django…

permissive · top 15,000 on PyPI

crispy-bootstrap3

Provides Bootstrap 3 HTML templates for…

permissive · top 15,000 on PyPI