django-markitup / tests /

Full commit
from django.db import models

from markitup.fields import MarkupField

class Post(models.Model):
    title = models.CharField(max_length=50)
    body = MarkupField()

    def __unicode__(self):
        return self.title

class AbstractParent(models.Model):
    content = MarkupField()

    class Meta:
        abstract = True

class NoRendered(models.Model):
    Test that the no_rendered_field keyword arg works. This arg should
    never be used except by the South model-freezing.

    body = MarkupField(no_rendered_field=True)

class CallableDefault(models.Model):
    A callable default on a field triggers hidden widget rendering by Django.
    body = MarkupField(default=lambda:'')