On Mon, Mar 31, 2008 at 6:40 AM, Marc Garcia <[EMAIL PROTECTED]> wrote:
>  I was thinking in giving a option on field definition, to make it safe
>  on all templates at same time. Anyway using safe filter as you
>  proposed is clearer than my initial solution.

Since subclassing Field to create your own custom model fields is easy
and documented, why not write an "HTMLField" class which calls
mark_safe() before returning a value?


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to