How retrieve first 6 element in the template
Posted
by xRobot
on Stack Overflow
See other posts from Stack Overflow
or by xRobot
Published on 2010-06-02T22:57:41Z
Indexed on
2010/06/02
23:14 UTC
Read the original article
Hit count: 148
django
|django-templates
In my template I have this for loop:
{% for member in blog.members.all %}
{{ member.first_name }}
{% endfor %}
Is there a way to retrieve only the first 10 members and not all the members ?
© Stack Overflow or respective owner