This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# django-nested-inlines

##I am not the author, I am simply publishing Alain Trinh’s work, with SilverFix’es bugfixes and improvements.

## SilverFix’es bugfix & changes - [inlines.js] Fixed severe bug with number of TOTAL_FORMS when adding a new nested - [tabular.html] Fixed look ‘n feel of the nested table (dynamic colspan handling) - [] Fixed exception using it with a no-deletable inline - [project structure] Deleted inlines.min.js - [] NestedModelAdmin was pointing to wrong js filename - [] Fixed a bug that would be skip any custom validation in clean() method

## Overview

[Django issue #9025](

Patches have been submitted, and repositories forked, but no one likes to use either one. Now, nested inlines are available in an easy-to-install package.

### Issues

The Javascript portion of this app is currently buggy. The Python portion should be solid. Please test and file issues and pull requests to improve it!

## Installation

pip install django-nested-inlines

## Usage

nested_inlines.admin contains three ModelAdmin subclasses to enable nested inline support: NestedModelAdmin, NestedStackedInline, and NestedTabularInline. To use them:

1. Add nested_inlines to your INSTALLED_APPS before django.contrib.admin. This is because this app overrides certain admin templates and media. 2. Import NestedModelAdmin, NestedStackedInline, and NestedTabularInline wherever you want to use nested inlines. 3. On admin classes that will contain nested inlines, use NestedModelAdmin rather than the standard ModelAdmin. 4. On inline classes, use Nested versions instead of the standard ones. 5. Add an inlines = [MyInline,] attribute to your inlines and watch the magic happen.

## Example

from django.contrib import admin from nested_inlines.admin import NestedModelAdmin, NestedStackedInline, NestedTabularInline from models import A, B, C

class MyNestedInline(NestedTabularInline):
model = C
class MyInline(NestedStackedInline):
model = B inlines = [MyNestedInline,]
class MyAdmin(NestedModelAdmin):
inlines = [MyInline,], MyAdmin)

## Credits

This package is mainly the work of other developers. I’ve only taken their patches and packaged them nicely for ease of use. Credit goes to:

  • Gargamel for providing the base patch on the Django ticket.
  • Stefan Klug for providing a fork with the patch applied, and for bugfixes.

See [Stefan Klug’s repository](

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-nested-inlines-0.1.tar.gz (8.0 kB) Copy SHA256 Checksum SHA256 Source Mar 7, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting