Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Overriding admin templates #919

Open
benf710 opened this issue Nov 23, 2021 · 0 comments · May be fixed by #920
Open

Allow Overriding admin templates #919

benf710 opened this issue Nov 23, 2021 · 0 comments · May be fixed by #920

Comments

@benf710
Copy link

benf710 commented Nov 23, 2021

Problem Statement
In base Django you are able to override admin templates to implement additional customizations. This doesn't work for the templates that are being used for django-simple-history.

Describe the solution you'd like
django-simple-history should allow you to override the base admin templates if needed in the same way that Django does.

The Solution
The way that Django implements this is by passing multiple template names to the templating engine. Django will try them in order until one of them resolves and will use that one.

Additional context
Django Docs: Admin | Overriding admin templates.
Django Admin Source lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant