Re: Print "flash" messages in templates for certain levels

2011-04-30 Thread Kenny Meyer
> Or is there other better solution? I think you should handle this in the view, like checking there if the user has sufficient privileges for seeing the message. Kenny -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Print "flash" messages in templates for certain levels

2011-04-30 Thread veena
Hi, django.contrib.messages is very handy and useful app. When I use it in template I'd like to print in one place in template only messages with certain level. That's not possible as I can understand it. You can print all of them (as described in documentation): {% if messages %} {% for mess