From 44d192cbe792770a2a99cdb417b5d052db103e95 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 26 Apr 2022 11:24:08 +0800 Subject: [PATCH] perf: stash --- apps/assets/models/protocol.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/assets/models/protocol.py b/apps/assets/models/protocol.py index 41c3d2c76..b2e1b750b 100644 --- a/apps/assets/models/protocol.py +++ b/apps/assets/models/protocol.py @@ -1,5 +1,9 @@ +from django.db import models +from django.utils.translation import gettext_lazy as _ + from common.db.models import JMSBaseModel class Protocol(JMSBaseModel): - pass + name = models.CharField(max_length=32, verbose_name=_("Name")) + port = models.IntegerField(verbose_name=_("Port"))