path The absolute path to the directory whose contents you want listed. This directory must exist.
Field.clean(value) [source] Although the primary way you’ll use Field classes
widget Must be a subclass of
allow_folders Optional. Either True or False. Default is False. Specifies whether folders
to_field_name This optional argument is used to specify the field to use as the value of the choices in the field’s widget.
class MultiValueField(fields=(), **kwargs) [source] Default widget:
class DurationField(**kwargs) [source] Default widget:
class MultipleChoiceField(**kwargs) [source] Default widget:
Field.error_messages The error_messages argument lets you override the default messages that the field will raise
coerce A function that takes one argument and returns a coerced value. Examples include the built-in int, float
Page 5 of 8