updated item group limit to 100

This commit is contained in:
Rushabh Mehta 2013-03-28 17:09:23 +05:30
parent de492d1738
commit 7ab3267886
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class DocType(DocTypeNestedSet):
for d in self.doc.sub_groups: for d in self.doc.sub_groups:
d.count = get_group_item_count(d.name) d.count = get_group_item_count(d.name)
self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=20) self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=100)
self.parent_groups = get_parent_item_groups(self.doc.name) self.parent_groups = get_parent_item_groups(self.doc.name)
self.doc.title = self.doc.name self.doc.title = self.doc.name

View File

@ -29,8 +29,8 @@
{{ item }} {{ item }}
{% endfor %} {% endfor %}
</div> </div>
{% if len(items)==20 %} {% if len(items)==100 %}
<div class="alert info">Showing top 20</div> <div class="alert info">Showing top 100 items.</div>
{% endif %} {% endif %}
{% else %} {% else %}
<div class="alert">No items listed.</div> <div class="alert">No items listed.</div>