Source

django-markitup / tests / models.py

Diff from to

tests/models.py

 
     """
     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:'')