This may be kind of hard to explain but what I am trying to accomplish
in Django is this:

I have 2 possible sets of data (It can also be one, depending on
what's easiest)

#1 is Reviews where FOO = X
#2 is Reviews where FOO = Y

Each Review contains several category type fileds. Summary, Value,
Features for example

How it works in this case, is I want to display the First and Second
review together, Third and Fourth together, etc .. Basically each
review is paired up with its sibling

How I want it laid out is simply:

REVIEW TITLE

Features:
`X` says : blah blah
`Y` says : yoo yoo

and so on.


I had some ideas for doing this, but it just became a mess of code
when I tried to add the two data blocks together. Problem is, I can
easily concatenate the two pieces of data together like so:

for x, y in zip(x_reviews, y_reviews):
          r = Review(
             title=str(x) ,
             features=str(x) + str(y)
                   ....
              )
          review_list.append(r)

But .. then it's just appended. I am thinking if it's possible perhaps
to do some sort of django template tag or filter that could easily
duplicate this while allowing me to easily insert the correct HTML
block in between each category of the review

Thanks in advance for any 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