Django Override Admin change_form.html Template - display associated model in template
问题 I have a situation where I've overrided the admin_change.html template for a given model. I've created a file such as: /myproject/templates/admin/myapp/mymodel/change_form.html Then, in the overrided change_form.html template, where I am editing an existing object instance, I want to have access to that model instance variable so I can display more information about it. {% extends "admin/change_form.html" %} {% block after_field_sets %}{{ block.super }} Print my model here: {{ mymodel }}