Skip to content

Commit 005a9ac

Browse files
Update requirements.txt
1 parent 71eb1c7 commit 005a9ac

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Django>=3.2.6
22
django-async-include==0.6.7
3-
django-ws-include==0.2.0
3+
django-ws-include==0.3.0
44
django-stubs>=1.9.0

shop_list/templates/shop_list/index_with_ws.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>

0 commit comments

Comments
 (0)