List Info

Thread: Conditional template formatting




Conditional template formatting
user name
2007-12-26 11:33:03
Let's say I have the following output in my template:

John Smith    37     widget1
John Smith    37     widget2
Bill Rogers    45     widget3
Bill Rogers    45     widget4

What I'd like to see in the output, instead of the
duplicated names:

John Smith    37     widget1
      -               -       widget2
Bill Rogers    45     widget3
      -               -       widget4


My query is based on the widgets, it's related to a customer
field.

Thanks for any advice.

jason

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Conditional template formatting
user name
2007-12-26 11:34:45
Gah, sorry. The second after I hit the send button I saw the ifchanged tag.


On Dec 26, 2007 12:33 PM, Jason < jason.masseygmail.com">jason.masseygmail.com> wrote:

Let's say I have the following output in my template:

John Smith    37     widget1
John Smith    37     widget2
Bill Rogers    45     widget3
Bill Rogers    45     widget4

What I'd like to see in the output, instead of the duplicated names:

John Smith    37     widget1
     -               -       widget2
Bill Rogers    45     widget3
     -               -       widget4


My query is based on the widgets, it's related to a customer field.

Thanks for any advice.

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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )