Hi guys,

I'm having trouble sorting and then slicing a queryset in one of my
templates -- I'm using the following, and the slicing isn't applied at
all:

{% for game in games|dictsortreversed:sort_on|slice:"pag_start:pag_end"
%}

Am I better off doing the sorting in my view and using generic views
for pagination?  I'm doing a lot of sorting on generated fields, both
from the database and from object methods, and as a Python novice, I
can't for the life of me figure out how to do the sorting in the view,
so sorting in the template seemed easier -- but now I'm not so sure....

Thanks for your help!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to