Nested inlines in the Django admin?

As of now there is no “built-in” way to have nested inlines (inline inside inline) in django.contrib.admin. Pulling something like this off is possible by having your own ModelAdmin and InlineModelAdmin subclasses that would enable this kind of functionality. See the patches on this ticket http://code.djangoproject.com/ticket/9025 for ideas on how to implement this. You’d also need to provide your own templates that would have nested iteration over both the top level inline and it’s child inline.

Leave a Comment