Skip to content

Django Admin: missing fields in relations

A side-effect of automatically registering models with the Django Admin is that often reverse-relations are missing from the edit forms, as Inline admins are not automatically created for nested to-many relations

See DjangoLDP-Project for an example where an Inline is defined. Here it only illustrates some extra work for the package developer, but in the example of DjangoLDP-Account, the user.projects is not serialized at all! To include it in this way with a custom definition would cause tight coupling between the packages

It would be useful to provide a version of the DjangoLDPAdmin class which can automatically create and register inlines for all nested fields

We may also want this admin class to be registered with LDPModels by default