Re: Strings in page in []

2010-03-22 Thread serek
Hi You have right. Thanks you very mach!!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.

Re: Strings in page in []

2010-03-22 Thread bruno desthuilliers
On Mar 22, 12:26 am, serek wrote: > Hi > > I use djangoflashhttp://djangoflash.destaquenet.com/ > and after add message to flash >             request.flash.add('message', 'test') > and redirect > i receive > ['test'] > instead > test Well, that's the documented behaviour : using "flash.add('key

Re: Strings in page in []

2010-03-21 Thread Paulo Almeida
It's not a matter of stripping the brackets, the problem is you are getting a list. I suppose you would get the result you want with the following code: {% if flash %} {% for key, value in flash.items %} {% for v in value %} {{ v }} {% endfor%}

Strings in page in []

2010-03-21 Thread serek
Hi I use djangoflash http://djangoflash.destaquenet.com/ and after add message to flash request.flash.add('message', 'test') and redirect i receive ['test'] instead test code which display this: {% if flash %} {% for key, value in flash.items %} {{ value }}