jumpserver/apps/assets/models/protocol.py

10 lines
281 B
Python

from django.db import models
from django.utils.translation import gettext_lazy as _
from common.db.models import JMSBaseModel
class Protocol(JMSBaseModel):
name = models.CharField(max_length=32, verbose_name=_("Name"))
port = models.IntegerField(verbose_name=_("Port"))