def get_queryset(self):
        """
        Returns a queryset of all states holding a non-special election on
        a date.
        """
        try:
            date = ElectionDay.objects.get(date=self.kwargs["date"])
        except Exception:
            raise APIException(
                "No elections on {}.".format(self.kwargs["date"])
            )
        division_ids = []

        normal_elections = date.elections.filter()

        if len(normal_elections) > 0:
            for election in date.elections.all():
                if election.division.level.name == DivisionLevel.STATE:
                    division_ids.append(election.division.uid)
                elif election.division.level.name == DivisionLevel.DISTRICT:
                    division_ids.append(election.division.parent.uid)

        return Division.objects.filter(uid__in=division_ids)
Returns a queryset of all states holding a non-special election on
        a date.