jumpserver/apps/assets/models/protocol.py

12 lines
357 B
Python

from django.db import models
from django.utils.translation import gettext_lazy as _
class Protocol(models.Model):
name = models.CharField(max_length=32, verbose_name=_("Name"))
port = models.IntegerField(verbose_name=_("Port"))
def save(self, force_insert=False, force_update=False, using=None,
update_fields=None):
pass