File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
shop_list/templates/shop_list Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11Django >= 3.2.6
22django-async-include == 0.6.7
3- django-ws-include == 0.2 .0
3+ django-ws-include == 0.3 .0
44django-stubs >= 1.9.0
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ <h1>Shop lists with ws</h1>
2121 < a href ="{% url 'shop_list:view_shop_list' shop_list.id %} ">
2222 {{ shop_list.name }} ({{shop_list.created_at}})
2323 </ a >
24- {% ws_include "shop_list/partials/item_list .html" shop_list=shop_list items=shop_list.item_set.all %}
24+ {% ws_include "shop_list/partials/item_list_with_ws .html" shop_list=shop_list items=shop_list.item_set.all %}
2525 </ li >
2626 {% endfor %}
2727</ ul >
Original file line number Diff line number Diff line change 1+ {% load ws_included_length %}
2+
3+ < div >
4+ < h2 > Product list ({{items|ws_included_length}})</ h2 >
5+ < ul >
6+ {% for item in items %}
7+ < li >
8+ {{ item.name }}
9+ </ li >
10+ {% endfor %}
11+ </ ul >
12+ </ div >
You can’t perform that action at this time.
0 commit comments