Then you incorrectly use mark_safe function. Again, here is a form example:

from django.utils.safestring import mark_safe

class MyModelForm(forms.ModelForm):
    class Meta:
        model = MyModel

    def clean_myfield(self):
        raise forms.ValidationError(mark_safe("Error<br />here"))

This <br /> won't be escaped in browser. If you still have it escaped, then
share your forms.py and template somewhere.


On Sat, May 7, 2011 at 5:45 PM, GKR <ranagou...@gmail.com> wrote:
>
> I am seeing it in browser

-- 
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.

Reply via email to