Re: Defining subsets of "list" variable at template level

2009-08-31 Thread Alex Robbins
First, if you aren't running into db performance problems, I wouldn't optimize. Keep everything as simple as possible, then optimize the parts that actually demonstrate themselves to be a performance issue. If this really is a performance issue, you could solve it like this: If you know that

Re: Defining subsets of "list" variable at template level

2009-08-30 Thread Jonathan
This explains how to do this using the dictsort and regroup filters. http://blueflavor.com/blog/2008/jul/28/advanced-django-template-tags-and-filters/ On Aug 30, 3:19 pm, Jonathan wrote: > I am looking for the exact same thing. > > On Aug 6, 11:35 pm, bweiss

Re: Defining subsets of "list" variable at template level

2009-08-30 Thread Jonathan
I am looking for the exact same thing. On Aug 6, 11:35 pm, bweiss wrote: > Is there a simple way to do the following that I'm just not seeing, or > am I looking at trying to write a custom tag?  The functionality I > need is similar to {% regroup %} but not quite the

Defining subsets of "list" variable at template level

2009-08-07 Thread bweiss
Is there a simple way to do the following that I'm just not seeing, or am I looking at trying to write a custom tag? The functionality I need is similar to {% regroup %} but not quite the same... My app currently has a custom admin view in which I've defined a whole bunch of different lists,