perf: deployment task log order by date

pull/9098/head
Eric 2022-11-17 16:38:46 +08:00
parent ef3654ffa4
commit 30f37d9ebf
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ class AppletHostDeployment(JMSBaseModel):
comment = models.TextField(default='', blank=True, verbose_name=_('Comment'))
task = models.UUIDField(null=True, verbose_name=_('Task'))
class Meta:
ordering = ('-date_start',)
def start(self, **kwargs):
from ...automations.deploy_applet_host import DeployAppletHostManager
manager = DeployAppletHostManager(self)