docs: def get_context_data(self, **kwargs):
          """Processes form data to get relevant entries & date_headers."""
          context = super(ReportMixin, self).get_context_data(**kwargs)
  
          form = self.get_form()
          if form.is_valid():
              data = form.cleaned_data
              start, end = form.save()
              entryQ = self.get_entry_query(start, end, data)
              trunc = data['trunc']
              if entryQ:
                  vals = ('pk', 'activity', 'project', 'project__name',
                          'project__status', 'project__type__label')
                  entries = Entry.objects.date_trunc(
                      trunc, extra_values=vals).filter(entryQ)
              else:
                  entries = Entry.objects.none()
  
              end = end - relativedelta(days=1)
              date_headers = generate_dates(start, end, by=trunc)
              context.update({
                  'from_date': start,
                  'to_date': end,
                  'date_headers': date_headers,
                  'entries': entries,
                  'filter_form': form,
                  'trunc': trunc,
              })
          else:
              context.update({
                  'from_date': None,
                  'to_date': None,
                  'date_headers': [],
                  'entries': Entry.objects.none(),
                  'filter_form': form,
                  'trunc': '',
              })
  
          return context