Re: Unpacking in template loops

2007-01-04 Thread Michel Thadeu Sabchuk
Hi! I'm just a beginner with django but I miss this functionality too. I will be glad if django loops could unpack the values of the list. Regards, Michel Thadeu Sabchuk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Unpacking in template loops

2007-01-04 Thread Michel Thadeu Sabchuk
Hi! I'm just a beginner with django but I miss this functionality too. I will be glad if django loops could unpack the values of the list. Regards, Michel Thadeu Sabchuk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Unpacking in template loops

2007-01-03 Thread Brian Beck
Sorry if this has been brought up before, I tried searching... Would it be too complex/controller-y/confusing to allow sequence unpacking in Django's for loops? As far as I can tell it isn't supported. So for example, if I have a list... fruits = [('apple', 10), ('orange', 5), ('banana', 7)]