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.
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
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%}
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 }}
4 matches
Mail list logo