def METHOD_NAME(self):
    tp = self.ticket.type
    return urljoin(
        settings.SITE_URL,
        const.TICKET_DETAIL_URL.format(
            id=str(self.ticket.id),
            type=tp
        )
    )