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: 127

Filed under:
|

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

Related posts about django

Related posts about django-templates