Editor/menu view that combines multiple models

Currently in the editor, a menu item has to be tied to editing a single model.

I suggest that you allow a single menu item in the editor to be linked to multiple models, with two modes (admin selected):

  • Combined mode.
    • The list of records combines the records of all models selected.
    • Column titles are the union of the fields of those models.
    • When the editor selects to add a new record, they are prompted to choose which model.
  • Tree mode.
    • The models selected must have an identified link field that links them together.
    • Records from one model are displayed as children of records from another model, when they link to that record (may cause children to appear under multiple parents).
    • The stacking order of the models is defined by the admin.
    • The + new record button is repeated underneath all records that can have children. Clicking it creates a new record of the child model type, pre-setting the link field to identify the parent record.

This system would allow for more intuitive editor views such as:

  • Updates area where each item might actually be a record of a different model, e.g. news, press_release, article, download.
  • List of categorised products in a tree. The category model is the parent and the product model is the child.