Hi Johan,

I really don't think you should be using a nested loop there. You
should only be testing whether the item is contained in the second
list or not. Before going into writing a custom template tag or
filter, a good enough solution could be to bind that information
(being you friend or not) to the items in the 'dreamers' list, which
would require a little bit of code before rendering the template. All
that depends on your existing code actually so I can't say much on how
to do it for now, unless you post it.

Cheers!
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to