Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num Str TupleLoad Str Num Str If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num Str TupleLoad Str Num Str decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num TupleLoad Str Num decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad TupleLoad Str Num Str TupleLoad Str Num decorator_list Call NameLoad Dict Str Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str TupleLoad Num Num decorator_list Call NameLoad Dict Str Str decorator_list
N/A django.template TemplateSyntaxError django.test SimpleTestCase utils setup ForTagTests N/A SimpleTestCase N/A N/A libraries N/A custom template_tests.templatetags.custom test_for_tag01 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag01 N/A values N/A 1 2 3 N/A N/A N/A self assertEqual output 123 N/A N/A setup N/A for-tag01 {% for val in values %}{{ val }}{% endfor %} test_for_tag02 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag02 N/A values N/A 1 2 3 N/A N/A N/A self assertEqual output 321 N/A N/A setup N/A for-tag02 {% for val in values reversed %}{{ val }}{% endfor %} test_for_tag_vars01 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-vars01 N/A values N/A 6 6 6 N/A N/A N/A self assertEqual output 123 N/A N/A setup N/A for-tag-vars01 {% for val in values %}{{ forloop.counter }}{% endfor %} test_for_tag_vars02 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-vars02 N/A values N/A 6 6 6 N/A N/A N/A self assertEqual output 012 N/A N/A setup N/A for-tag-vars02 {% for val in values %}{{ forloop.counter0 }}{% endfor %} test_for_tag_vars03 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-vars03 N/A values N/A 6 6 6 N/A N/A N/A self assertEqual output 321 N/A N/A setup N/A for-tag-vars03 {% for val in values %}{{ forloop.revcounter }}{% endfor %} test_for_tag_vars04 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-vars04 N/A values N/A 6 6 6 N/A N/A N/A self assertEqual output 210 N/A N/A setup N/A for-tag-vars04 {% for val in values %}{{ forloop.revcounter0 }}{% endfor %} test_for_tag_vars05 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-vars05 N/A values N/A 6 6 6 N/A N/A N/A self assertEqual output fxx N/A N/A setup N/A for-tag-vars05 {% for val in values %}{% if forloop.first %}f{% else %}x{% endif %}{% endfor %} test_for_tag_vars06 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-vars06 N/A values N/A 6 6 6 N/A N/A N/A self assertEqual output xxl N/A N/A setup N/A for-tag-vars06 {% for val in values %}{% if forloop.last %}l{% else %}x{% endif %}{% endfor %} test_for_tag_unpack01 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-unpack01 N/A items N/A N/A one 1 N/A two 2 N/A N/A N/A self assertEqual output one:1/two:2/ N/A N/A setup N/A for-tag-unpack01 {% for key,value in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack03 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-unpack03 N/A items N/A N/A one 1 N/A two 2 N/A N/A N/A self assertEqual output one:1/two:2/ N/A N/A setup N/A for-tag-unpack03 {% for key, value in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack04 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-unpack04 N/A items N/A N/A one 1 N/A two 2 N/A N/A N/A self assertEqual output one:1/two:2/ N/A N/A setup N/A for-tag-unpack04 {% for key , value in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack05 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-unpack05 N/A items N/A N/A one 1 N/A two 2 N/A N/A N/A self assertEqual output one:1/two:2/ N/A N/A setup N/A for-tag-unpack05 {% for key ,value in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack06 N/A N/A self N/A N/A N/A N/A N/A self assertRaises TemplateSyntaxError N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack06 N/A items N/A N/A one 1 N/A two 2 N/A N/A setup N/A for-tag-unpack06 {% for key value in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack07 N/A N/A self N/A N/A N/A N/A N/A self assertRaises TemplateSyntaxError N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack07 N/A items N/A N/A one 1 N/A two 2 N/A N/A setup N/A for-tag-unpack07 {% for key,,value in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack08 N/A N/A self N/A N/A N/A N/A N/A self assertRaises TemplateSyntaxError N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack08 N/A items N/A N/A one 1 N/A two 2 N/A N/A setup N/A for-tag-unpack08 {% for key,value, in items %}{{ key }}:{{ value }}/{% endfor %} test_for_tag_unpack09 N/A N/A self N/A N/A N/A 
        Ensure that a single loopvar doesn't truncate the list in val.
         N/A output N/A N/A N/A self engine render_to_string for-tag-unpack09 N/A items N/A N/A one 1 N/A two 2 N/A N/A N/A self assertEqual output one:1/two:2/ N/A N/A setup N/A for-tag-unpack09 {% for val in items %}{{ val.0 }}:{{ val.1 }}/{% endfor %} test_for_tag_unpack13 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-unpack13 N/A items N/A N/A one 1 carrot N/A two 2 cheese N/A N/A N/A self engine string_if_invalid N/A N/A N/A N/A self assertEqual output one:1,carrot/two:2,cheese/ N/A N/A N/A N/A self assertEqual output one:1,carrot/two:2,cheese/ N/A N/A setup N/A for-tag-unpack13 {% for x,y,z in items %}{{ x }}:{{ y }},{{ z }}/{% endfor %} test_for_tag_empty01 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-empty01 N/A values N/A 1 2 3 N/A N/A N/A self assertEqual output 123 N/A N/A setup N/A for-tag-empty01 {% for val in values %}{{ val }}{% empty %}empty text{% endfor %} test_for_tag_empty02 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-empty02 N/A values N/A N/A N/A N/A self assertEqual output values array empty N/A N/A setup N/A for-tag-empty02 {% for val in values %}{{ val }}{% empty %}values array empty{% endfor %} test_for_tag_empty03 N/A N/A self N/A N/A N/A output N/A N/A N/A self engine render_to_string for-tag-empty03 N/A N/A N/A self assertEqual output values array not found N/A N/A setup N/A for-tag-empty03 {% for val in values %}{{ val }}{% empty %}values array not found{% endfor %} test_for_tag_filter_ws N/A N/A self N/A N/A N/A 
        #19882
         N/A output N/A N/A N/A self engine render_to_string for-tag-filter-ws N/A s abc N/A N/A N/A self assertEqual output abc N/A N/A setup N/A for-tag-filter-ws {% load custom %}{% for x in s|noop:'x y' %}{{ x }}{% endfor %} test_for_tag_unpack10 N/A N/A self N/A N/A N/A N/A N/A self assertRaisesMessage ValueError Need 2 values to unpack in for loop; got 3. N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack10 N/A items N/A N/A one 1 carrot N/A two 2 orange N/A N/A setup N/A for-tag-unpack10 {% for x,y in items %}{{ x }}:{{ y }}/{% endfor %} test_for_tag_unpack11 N/A N/A self N/A N/A N/A N/A N/A self assertRaisesMessage ValueError Need 3 values to unpack in for loop; got 2. N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack11 N/A items N/A N/A one 1 N/A two 2 N/A N/A setup N/A for-tag-unpack11 {% for x,y,z in items %}{{ x }}:{{ y }},{{ z }}/{% endfor %} test_for_tag_unpack12 N/A N/A self N/A N/A N/A N/A N/A self assertRaisesMessage ValueError Need 3 values to unpack in for loop; got 2. N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack12 N/A items N/A N/A one 1 carrot N/A two 2 N/A N/A setup N/A for-tag-unpack12 {% for x,y,z in items %}{{ x }}:{{ y }},{{ z }}/{% endfor %} test_for_tag_unpack14 N/A N/A self N/A N/A N/A N/A N/A self assertRaisesMessage ValueError Need 2 values to unpack in for loop; got 1. N/A N/A N/A N/A N/A self engine render_to_string for-tag-unpack14 N/A items N/A 1 2 N/A N/A setup N/A for-tag-unpack14 {% for x,y in items %}{{ x }}:{{ y }}/{% endfor %} N/A