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
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
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
[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
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
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:
>
>
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
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...
8 matches
Mail list logo