Contrib

Model and form fields

class feincms.contrib.fields.JSONField(verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class django.db.models.fields.NOT_PROVIDED>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text=u'', db_column=None, db_tablespace=None, auto_created=False, validators=[], error_messages=None)

TextField which transparently serializes/unserializes JSON objects

See: http://www.djangosnippets.org/snippets/1478/

get_prep_value(value)

Convert our JSON object to a string before we save

to_python(value)

Convert our string value to JSON after we load it from the DB

value_to_string(obj)

Extract our value from the passed object and return it in string form

class feincms.contrib.richtext.RichTextField(verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class django.db.models.fields.NOT_PROVIDED>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text=u'', db_column=None, db_tablespace=None, auto_created=False, validators=[], error_messages=None)

Drop-in replacement for Django’s models.TextField which allows editing rich text instead of plain text in the item editor.

Tagging