On Jun 19, 11:54 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > For example at the template level...
>
> > {% for news in latest_news_list last 10 %}
>
> > I'm hoping this would grab the latest 10 objects in the
> > latest_news_list. Does anyone know the best way to do this, or have
> > so
> For example at the template level...
>
> {% for news in latest_news_list last 10 %}
>
> I'm hoping this would grab the latest 10 objects in the
> latest_news_list. Does anyone know the best way to do this, or have
> some examples set up I could read over?
Looks like you want the slice
I was trying to figure out the best way to loop through a specific
number of objects in a for loop.
For example at the template level...
{% for news in latest_news_list last 10 %}
I'm hoping this would grab the latest 10 objects in the
latest_news_list. Does anyone know the best way
3 matches
Mail list logo