Could I use urlize filter in this way ?

Posted by xRobot on Stack Overflow See other posts from Stack Overflow or by xRobot
Published on 2010-05-27T17:15:15Z Indexed on 2010/05/27 17:21 UTC
Read the original article Hit count: 205

Could I use urlize filter in this way? :

from django.utils.html import urlize

def save(self, force_insert=False, force_update=False):
    self.body = urlize(self.body)
    super(Post, self).save(force_insert, force_update)

body is a TextField.

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models