Answer the question
In order to leave comments, you need to log in
How to add variable to django admin template?
I want to add a variable to the list of django admin objects before listing.
Found the possibility of overriding change_list.html.
Redefined content:
{% block content %}
{{ my_var }}
{{ block.super }}
{% endblock %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question