Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django: in template tag what does cl mean?

In django admin change list template there is a block:

  {% block result_list %}
      {% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
      {% result_list cl %}
      {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %}
  {% endblock %}

I would like to know what does {% result_list cl %} do, i.e. what does cl mean? I couldn't find it in docs.

like image 620
dsalaj Avatar asked Jan 22 '16 08:01

dsalaj


People also ask

What are Django template tags?

Django Code The template tags are a way of telling Django that here comes something else than plain HTML. The template tags allows us to to do some programming on the server before sending HTML to the client.

What does {{ name }} this mean in Django templates?

What does {{ name }} this mean in Django Templates? {{ name }} will be the output. It will be displayed as name in HTML. The name will be replaced with values of Python variable.

Which characters are illegal in template variable name in Django?

Variable names consist of any combination of alphanumeric characters and the underscore ( "_" ) but may not start with an underscore, and may not be a number.


1 Answers

Its a context variable name being used in an inclusion tag

result_list's source code comment states that it "Displays the headers and data list together".

like image 105
Sayse Avatar answered Sep 20 '22 13:09

Sayse