2022-06-23 05:52:28 +00:00
|
|
|
from django.db import models
|
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
|
|
from .general import Ticket
|
|
|
|
|
|
|
|
|
|
|
|
class ApplyCommandTicket(Ticket):
|
|
|
|
apply_run_user = models.ForeignKey(
|
2022-12-06 10:26:07 +00:00
|
|
|
'users.User', on_delete=models.SET_NULL, null=True, verbose_name=_('Run user')
|
2022-06-23 05:52:28 +00:00
|
|
|
)
|
2022-06-30 03:44:54 +00:00
|
|
|
apply_run_asset = models.CharField(max_length=128, verbose_name=_('Run asset'))
|
2022-06-23 05:52:28 +00:00
|
|
|
apply_run_command = models.CharField(max_length=4096, verbose_name=_('Run command'))
|
2022-11-17 11:20:54 +00:00
|
|
|
apply_run_account = models.CharField(max_length=128, default='', verbose_name=_('Run account'))
|
2022-06-23 05:52:28 +00:00
|
|
|
apply_from_session = models.ForeignKey(
|
2022-12-06 10:26:07 +00:00
|
|
|
'terminal.Session', on_delete=models.SET_NULL, null=True, verbose_name=_("Session")
|
2022-06-23 05:52:28 +00:00
|
|
|
)
|
2022-12-06 10:26:07 +00:00
|
|
|
apply_from_cmd_filter_acl = models.ForeignKey(
|
|
|
|
'acls.CommandFilterACL', on_delete=models.SET_NULL,
|
|
|
|
null=True, verbose_name=_('Command filter acl')
|
2022-06-23 05:52:28 +00:00
|
|
|
)
|