markymark.fields

class markymark.fields.MarkdownFormField(*args, **kwargs)[source]

Bases: CharField

Form field to configure the markdown textarea widget if not already set.

__init__(*args, **kwargs)[source]

Update the kwargs to set the markdown widget. Special note: the provided widget should be a subclass of MarkdownTextarea, if not the provided widget will be ignored.

class markymark.fields.MarkdownField(*args, db_collation=None, **kwargs)[source]

Bases: TextField

Model field based on TextField with enabled markdown form field.

formfield(form_class=<class 'markymark.fields.MarkdownFormField'>, **kwargs)[source]

Return a django.forms.Field instance for this field.