perf: change Command

This commit is contained in:
ibuler
2025-03-18 13:40:40 +08:00
committed by 老广
parent 7bd03c7863
commit f72fc19ba6
7 changed files with 31 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ from django.db import models
from django.utils.translation import gettext_lazy as _
from perms.const import ActionChoices
from tickets.const import TicketType
from .general import Ticket
__all__ = ['ApplyAssetTicket']
@@ -19,6 +20,8 @@ class ApplyAssetTicket(Ticket):
apply_date_start = models.DateTimeField(verbose_name=_('Date start'), null=True)
apply_date_expired = models.DateTimeField(verbose_name=_('Date expired'), null=True)
TICKET_TYPE = TicketType.apply_asset
def get_apply_actions_display(self):
return ActionChoices.display(self.apply_actions)