forms.SplitDateTimeWidget.date_format

date_format Similar to DateInput.format

forms.SplitDateTimeField.input_date_formats

input_date_formats A list of formats used to attempt to convert a string to a valid datetime.date object. If no input_date_formats argument is provided, the default input formats for DateField are used.

forms.SplitDateTimeField.input_time_formats

input_time_formats A list of formats used to attempt to convert a string to a valid datetime.time object. If no input_time_formats argument is provided, the default input formats for TimeField are used.

forms.SplitDateTimeField

class SplitDateTimeField(**kwargs) [source] Default widget: SplitDateTimeWidget Empty value: None Normalizes to: A Python datetime.datetime object. Validates that the given value is a datetime.datetime or string formatted in a particular datetime format. Error message keys: required, invalid, invalid_date, invalid_time Takes two optional arguments: input_date_formats A list of formats used to attempt to convert a string to a valid datetime.date object. If no input_date_formats arg

forms.SelectMultiple

class SelectMultiple [source] Similar to Select, but allows multiple selection: <select multiple='multiple'>...</select>

forms.SlugField.allow_unicode

allow_unicode New in Django 1.9. A boolean instructing the field to accept Unicode letters in addition to ASCII letters. Defaults to False.

forms.SlugField

class SlugField(**kwargs) [source] Default widget: TextInput Empty value: '' (an empty string) Normalizes to: A Unicode object. Validates that the given value contains only letters, numbers, underscores, and hyphens. Error messages: required, invalid This field is intended for use in representing a model SlugField in forms. Takes an optional parameter: allow_unicode New in Django 1.9. A boolean instructing the field to accept Unicode letters in addition to ASCII letters. Defaults to

forms.SelectDateWidget.years

years An optional list/tuple of years to use in the “year” select box. The default is a list containing the current year and the next 9 years.

forms.SelectDateWidget.empty_label

empty_label If the DateField is not required, SelectDateWidget will have an empty choice at the top of the list (which is --- by default). You can change the text of this label with the empty_label attribute. empty_label can be a string, list, or tuple. When a string is used, all select boxes will each have an empty choice with this label. If empty_label is a list or tuple of 3 string elements, the select boxes will have their own custom label. The labels should be in this order ('year_label

forms.Select.choices

choices This attribute is optional when the form field does not have a choices attribute. If it does, it will override anything you set here when the attribute is updated on the Field.