I am using django-pagination in several places in my app and it is
working well. I have tried to use it for search results (search.html)
but here it isn't working the way I had hoped. I am using the "Large"
project for testing and have used this in my template
{% autopaginate results.products 4 %}
{% for product in results.products %}
{% ifchanged %}<li><a
href="{{ product.get_absolute_url }}">{{ product.translated_name }}</a>
{% trans "for" %} {{ product|discount_price:sale|currency}}</ li>{%
endifchanged %}
{% endfor %}
</ul>
<div id="pagination">{% paginate%}</div>
This produces the correct number of pages but the total number of
results get shown on each page. So I am guessing the listing is being
produced before the paging but I don't see why.
Any suggestions anyone?
Regards,
Iain.
Django 1.1.1
Satchmo 0.9
Python 2.5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---