Search code examples
djangodjango-modelsinsertdjango-admintabular

Is there a model to allow Django to insert or append records in the TabularInline style to the main table?


Following the style of the Django tutorial I want to add records in the TabularInline style on the main table, not in the master/detail style used in the tutorial.

The ideal approach would be to have a list_display and specify how many empty rows should be inserted or appended to the list when you click to add records.

Is there a way to accomplish this in Django? I am starting on 1.3


Solution

  • To do what you're asking, you would need to use your own view and a formset_factory to override the admin change list.