Method output in the detailed admin window

Is there an easy way to display the output of a method in the Djangos admin verbose view? We have a list_display field for the list view , however I cannot find anything similar for the detailed view. Surely editing a template would have been the way to go, but couldn't it have been easier?

+2


source to share


1 answer


Creating a new template is not that difficult. I usually put information in the right column like this:



{% extends "admin/change_form.html" %}
{% block coltype %}colMS{% endblock %}
{% block content %}{{block.super}}
<div id="content-related">
    {{original.method}}
</div>
{% endblock %}

      

0


source







All Articles