On 25.4.2011 18:00, Jason Culverhouse wrote:

You only need to mark the string as safe as in:

http://docs.djangoproject.com/en/1.3/ref/utils/#module-django.utils.safestring

from django.utils.safestring import mark_safe

raise forms.ValidationError(mark_safe('We already have this
file<a href="/somehwere">here</a>'))

This indeed works, thank you very much!

PS: I'm just wondering where did you find this? I was looking around the documentation and was unable to get any trace of such a function...

--
Best regards
  Daniel Gerzo

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