Hello all, I think I have found a bug, but this time I am not completely sure, so I post it first in this group.
What I want to do is set an error message in the message-queue and show this to the user after a redirect. Something pretty common I guess. So I have the following code: messages.error(request, mark_safe('<p>some text</p>')) return HttpResponseRedirect(reverse("intro")) I know at this time the message is safe, so I mark it as safe. I don't want to do this in my template of course, since I don't know if all my messages are safe. However, it seems that the redirect removes the safe_marking around my message! since the result I get in my browser is html-encoded! I did a test and added messages.info(request, mark_safe('<p>some other text</p>')); in my controller, and now I get the following result <p>some other text</p> <p>some text</p> <p>some other text</p> So as you can clearly see the two messages before the redirect have lost their safe-state, while the last message shows up as expected. Am I missing something, or why do I seems the only one mentioning this problem? (I don't see anything on the net regarding this issue). -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.