Skip to content

How to extend your change_form template #262

Answered by merwok
giadasp asked this question in Q&A
Discussion options

You must be logged in to vote

To override the base change_form, I have a template in <project>/templates/admin/change_form.html
project is a django app that’s first in INSTALLED_APPS, before django-admin-interface and django.

To customize a change form for a specific model, I have for example <project>/<app1>/templates/admin/<model1>_change_form.html and set change_form_template = "admin/<model1>_change_form.html in the admin class.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@giadasp
Comment options

Answer selected by giadasp
Comment options

You must be logged in to vote
4 replies
@giadasp
Comment options

@giadasp
Comment options

@giadasp
Comment options

@fabiocaccamo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants