Returns a queryset of all bodies holding an election on a date.

def get_queryset(self):
        """
        Returns a queryset of all bodies holding an election on a date.
        """
        try:
            date = ElectionDay.objects.get(date=self.kwargs['date'])
        except Exception:
            raise APIException(
                'No elections on {}.'.format(self.kwargs['date'])
            )
        body_ids = []
        for election in date.elections.all():
            body = election.race.office.body
            if body:
                body_ids.append(body.uid)
        return Body.objects.filter(uid__in=body_ids)