DateRangeParameterOption
The class for parameter options of date range parameters. Note that only one option can appear at a time, but different options may appear based on authenticated user or parent parameter selections. See ParameterOption page for more details on the common constructor arguments.
Can be found in the classpath squirrels.parameter_options.DateRangeParameterOption
or squirrels.DateRangeParameterOption
.
Constructor​
Creates a DateRangeParameterOption object.
Required Arguments:
- default_start_date: A string or date (from datetime package). This is the default selected start date for this option
- default_end_date: A string or date (from datetime package). This is the default selected end date for this option
- Must be a date after "default_start_date"
Optional Keyword Arguments:
- date_format: A string for the format of the "default_date" argument. Uses datetime's format codes. Default is '%Y-%m-%d'
- user_groups (see ParameterOption)
- parent_options_ids (see ParameterOption)