perf: 翻译

This commit is contained in:
feng
2023-12-08 16:06:17 +08:00
parent 81de527e32
commit cc7220a4ad
13 changed files with 359 additions and 159 deletions

View File

@@ -14,7 +14,7 @@ class AppProvider(JMSBaseModel):
related_name='app_provider', verbose_name=_('Terminal')
)
apps = models.ManyToManyField(
'VirtualApp', verbose_name=_('VirtualApp'),
'VirtualApp', verbose_name=_('Virtual app'),
through='VirtualAppPublication', through_fields=('provider', 'app'),
)

View File

@@ -94,7 +94,7 @@ class VirtualAppPublication(JMSBaseModel):
'AppProvider', on_delete=models.CASCADE, related_name='publications', verbose_name=_('App Provider')
)
app = models.ForeignKey(
'VirtualApp', on_delete=models.CASCADE, related_name='publications', verbose_name=_('Virtual App')
'VirtualApp', on_delete=models.CASCADE, related_name='publications', verbose_name=_('Virtual app')
)
status = models.CharField(max_length=16, default='pending', verbose_name=_('Status'))