fix: ticket URL type

This commit is contained in:
feng626
2022-03-17 11:57:25 +08:00
committed by 老广
parent 1433c35ff9
commit e8653c74cd
2 changed files with 8 additions and 2 deletions

View File

@@ -20,7 +20,13 @@ class BaseTicketMessage(UserMessage):
@property
def ticket_detail_url(self):
tp = self.ticket.type
return urljoin(settings.SITE_URL, const.TICKET_DETAIL_URL.format(id=str(self.ticket.id)))
return urljoin(
settings.SITE_URL,
const.TICKET_DETAIL_URL.format(
id=str(self.ticket.id),
type=tp
)
)
@property
def content_title(self):