Re: Displaying a list of lists?

2008-09-12 Thread Lance F. Squire
On Sep 12, 8:32 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > You need the ifchanged tag: > > > {% for items in list %} > {% if changed items.0 %}{{ items.0 }}{% endifchanged %} td>{{ items.1 }} > {% endfor %} > Thats what I went with! Looks like it would use less processor cycles to do

Re: Displaying a list of lists?

2008-09-12 Thread Steve Holden
Daniel Roseman wrote: > On Sep 12, 1:04 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> [OT question: Why does top-posting seem to be the default response mode on >> this list?] >> As a follow-up to this question, how would one cast the output as a table >> where the major field is only

Re: Displaying a list of lists?

2008-09-12 Thread Daniel Roseman
On Sep 12, 1:04 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [OT question: Why does top-posting seem to be the default response mode on > this list?] > As a follow-up to this question, how would one cast the output as a table > where the major field is only displayed on change. I.e., how to

Re: Displaying a list of lists?

2008-09-12 Thread Steve Holden
[OT question: Why does top-posting seem to be the default response mode on this list?] As a follow-up to this question, how would one cast the output as a table where the major field is only displayed on change. I.e., how to produce tabular output of the form Widgets Widget 1

Re: Displaying a list of lists?

2008-09-11 Thread Dana
You could try the template filter "unordered_list" too I believe (haven't done it myself). http://docs.djangoproject.com/en/dev/ref/templates/builtins/#unordered-list Cheers On Sep 11, 11:36 am, "Lance F. Squire" <[EMAIL PROTECTED]> wrote: > Currently using Django version 0.96.3, on a Fedora 8

Re: Displaying a list of lists?

2008-09-11 Thread Russell Keith-Magee
On Fri, Sep 12, 2008 at 2:36 AM, Lance F. Squire <[EMAIL PROTECTED]> wrote: > > Currently using Django version 0.96.3, on a Fedora 8 system. > > I've currently set-up models for 'Manufacturer' and 'System'. System > has a Foreignkey to Manufacturer. > > I'd like to display a list like so: > >

Re: Displaying a list of lists?

2008-09-11 Thread Lance F. Squire
Is there a way to see if a filed changes between iterations? That is, I pass the Systems list to the template sorted by Manufacturer and name. The template then only displays the new Manufacturer name when it changes? I thought I saw something like that somewhere, but can't find it now

Displaying a list of lists?

2008-09-11 Thread Lance F. Squire
Currently using Django version 0.96.3, on a Fedora 8 system. I've currently set-up models for 'Manufacturer' and 'System'. System has a Foreignkey to Manufacturer. I'd like to display a list like so: Manu A System a System b System c Manu B System a System b System c Etc...