@property
    def defaults(self):
        # Set default date span to previous week.
        (start, end) = get_week_window(timezone.now() - relativedelta(days=7))
        return {
            'from_date': start,
            'to_date': end,
            'billable': True,
            'non_billable': False,
            'paid_leave': False,
            'trunc': 'day',
            'projects': [],
        }
Default filter form data when no GET data is provided.
dataset/ETHPy150Open caktus/django-timepiece/timepiece/reports/views.py/HourlyReport.defaults