lambdalisue/django-codemirror-widget — pull request #12 by ravishivt (2013-05-28 21:40:34+00:00)
Title: Support a custom model field

This allows you to directly tie the CodeMirorTextarea widget to a model field, which is helpful when you want to associate the widget from your model.

Example:
```python
from codemirror.fields import CodeMirrorField

class PostChangeHook(models.Model):
name = models.CharField(max_length=200,)
function = CodeMirrorField(max_length=3000,)
```