1. Sergey Maranchuk
  2. django-bbmarkup

Wiki

Clone wiki

django-bbmarkup / Home

Usage

from bbmarkup import bbcode

class YourModel(models.Model):
    content  = models.TextField()
    content_html = models.TextField(editable=False)

    def save(self, *args, **kwargs):
        self.content_html = bbcode(self.content)
        super(YourModel, self).save(*args, **kwargs)

Updated