jumpserver/apps/assets/models/asset/remote_app.py

11 lines
372 B
Python

from django.utils.translation import gettext_lazy as _
from django.db import models
from .common import Asset
class RemoteApp(Asset):
app_path = models.CharField(max_length=1024, verbose_name=_("App path"))
connect_host = models.ForeignKey('assets.Host', null=True, on_delete=models.SET_NULL)
attrs = models.JSONField(default=dict, verbose_name=_('Attrs'))