Re: Using a subset of a queryset in a template

2009-05-13 Thread Alex Koshelev
On Wed, May 13, 2009 at 2:56 PM, Alex Rades wrote: > > Hi, > in one of my templates I'd like to show the last images taken from > a queryset. So the equivalent of: > > images.all()[:5] > > in a template. > Is there a simple way to do this? Do i need a templatetag? > Hi,

Using a subset of a queryset in a template

2009-05-13 Thread Alex Rades
Hi, in one of my templates I'd like to show the last images taken from a queryset. So the equivalent of: images.all()[:5] in a template. Is there a simple way to do this? Do i need a templatetag? --~--~-~--~~~---~--~~ You received this message because you are