Returns the published URL template for a page type.

def page_location_template(self):
        """
        Returns the published URL template for a page type.
        """
        cycle = self.election_day.cycle.name
        model_class = self.model_type.model_class()
        if model_class == ElectionDay:
            return "/{}/".format(cycle)
        if model_class == Office:
            # President
            if self.jurisdiction:
                if self.division_level.name == DivisionLevel.STATE:
                    return "/{}/president/{{state}}".format(cycle)
                else:
                    return "/{}/president/".format(cycle)
            # Governor
            else:
                return "/{}/{{state}}/governor/".format(cycle)
        elif model_class == Body:
            # Senate
            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)
            # House
            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"