def page_location_template(self):
        cycle = self.election_day.cycle.name
        model_class = self.model_type.model_class()
        if model_class == ElectionDay:
            return "/{}/".format(cycle)
        if model_class == Office:
            if self.jurisdiction:
                if self.division_level.name == DivisionLevel.STATE:
                    return "/{}/president/{{state}}".format(cycle)
                else:
                    return "/{}/president/".format(cycle)
            else:
                return "/{}/{{state}}/governor/".format(cycle)
        elif model_class == Body:
            if self.body.slug == "senate":
                if self.jurisdiction:
                    if self.division_level.name == DivisionLevel.STATE:
                        return "/{}/senate/{{state}}/".format(cycle)
                    else:
                        return "/{}/senate/".format(cycle)
                else:
                    return "/{}/{{state}}/senate/".format(cycle)
            else:
                if self.jurisdiction:
                    if self.division_level.name == DivisionLevel.STATE:
                        return "/{}/house/{{state}}/".format(cycle)
                    else:
                        return "/{}/house/".format(cycle)
                else:
                    return "/{}/{{state}}/house/".format(cycle)
        elif model_class == Division:
            return "/{}/{{state}}/".format(cycle)
        else:
            return "ORPHAN TYPE"