for loop break

2006-10-31 Thread Henhiskan

Hi guys, I try it to do a break on a for loop (django template).
For example, iterates until find a element. How can I make it?

thanks.-


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: for loop break

2006-10-31 Thread James Bennett

On 10/31/06, Henhiskan <[EMAIL PROTECTED]> wrote:
> Hi guys, I try it to do a break on a for loop (django template).
> For example, iterates until find a element. How can I make it?

This really feels more like something that would belong in the view;
if you want a particular list or dictionary to only contain a subset
of elements, or just one specific element, then view is the place to
do that -- the template is meant more to render the data that's handed
to it, not to further manipulate the data.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---