class TimeSeriesReportWithSelector(TimeSeriesReport):
report_title = _("Time Series Report With Pattern Selector")
report_description = _("Adds a pattern selector (daily / weekly / bi-weekly / monthly) to the filter form."
"users can switch time granularity without changing report code.")
time_series_selector = True
time_series_selector_choices = (
("daily", _("Daily")),
("weekly", _("Weekly")),
("bi-weekly", _("Bi-Weekly")),
("monthly", _("Monthly")),
)
time_series_selector_default = "bi-weekly"
# The label for the time series selector
time_series_selector_label = _("Period Pattern")
# Allow the user to select an empty time series, in which case no time series will be applied to the report.
time_series_selector_allow_empty = True