Skip to content

Add Support for include custom HTML templates in django-admin change-form #708

Description

@ebertti

Hello,

First, I want to thank you for the amazing work you’ve done with this project. The theme has greatly improved the customization and usability of the Django Admin.

I would like to suggest a new feature that I believe could bring even more flexibility and power to the Django Admin. It would be incredibly useful to have the ability to include custom HTML templates directly into the change-forms of the Django Admin. This would allow developers to add dynamic content or custom interfaces directly on the edit page of an object without needing to resort to hacks or complex solutions.

Some use cases for this feature include:

  • Adding help sections or specific documentation for each model.
  • Including visualizations of charts or data related to the object being edited.
  • Inserting buttons or links for custom actions that interact with the object being edited.

I believe this feature could be implemented in a flexible way, perhaps allowing developers to include additional template blocks through hooks or specific settings in the admin.

Screenshots

image

image

Examples on others admin templates?

https://django-suit.readthedocs.io/en/develop/form_includes.html#example
https://github.com/otto-torino/django-baton?tab=readme-ov-file#form-includes

Thank you for considering this suggestion. I am available to discuss further details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions