code: 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': [],
          }
docs: Default filter form data when no GET data is provided.