Answer the question
In order to leave comments, you need to log in
Django what is the difference between change_list and change_list_results?
What is the difference between change_list and change_list_results? I can't find or understand. I noticed that they are somehow related to each other (the latter does not work without the first). I solve the problem of customizing the admin panel.
Answer the question
In order to leave comments, you need to log in
I am answering my own question for those who will be interested and for those who will encounter or ask the same question in the future. Hello from the past, reader :)
In short, in Django, the template system is designed in such a way that you can inherit from other templates and redefine blocks of parent templates. The change_list.html template is just part of this templating system (with inheritance, block redefinition, etc.) This template uses Django's built-in result_list tag, which is responsible for displaying a list of objects and headers in the admin together. So, the built-in result_list tag can be overridden by matching it with your own html template. change_list_results is just such a template that the Django developers provide for this purpose.
Those. The difference between change_list and change_list_results is that the former is part of the Django templating system itself, while the latter is an html template that can be mapped to an overridden result_list tag in order to change Django's default behavior and layout of the admin template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question