cms_helpers.filer_fields module

class cms_helpers.filer_fields.AdminFileFormField(*args, **kwargs)[source]

Bases: AdminFileFormField

clean(value)[source]

Validate the given value and return its “cleaned” value as an appropriate Python object. Raise ValidationError for any errors.

class cms_helpers.filer_fields.FilerFileField(verbose_name=None, *args, **kwargs)[source]

Bases: FilerFileField

default_form_class[source]

alias of AdminFileFormField

formfield(**kwargs)[source]

Pass limit_choices_to to the field being constructed.

Only passes it if there is a type that supports related fields. This is a similar strategy used to pass the queryset to the field being constructed.