[Answered ]-Django templates override: where is "Change YOUR_MODEL"

2👍

This HTML comes from the django/contrib/admin/templates/admin/base.html template. Specifically, it’s from this part of the base template:

{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}

Thus, the simplest way to override it is to define your own content_title block in your custom change_form.html template. If that doesn’t offer you enough control, you’ll have to get into custom admin views so you can define the title context variable appropriately – I’d avoid that if at all possible.

0👍

Not sure if this is the answer you are looking for, but go into site-packages and find django. Look in django.contrib.static.admin.css.base and you’ll find h1 is

h1 {
    font-size: 18px;
    color: #666;
    padding: 0 6px 0 0;
    margin: 0 0 .2em 0;
}

Leave a comment