From b5f94d84f79f6acba72a2196f35a003399af3232 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Mon, 23 Sep 2019 15:31:09 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20Session=20protocol=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20telnet=20=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0015_auto_20190923_1529.py | 18 ++++++++++++++++++ apps/terminal/models.py | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 apps/terminal/migrations/0015_auto_20190923_1529.py diff --git a/apps/terminal/migrations/0015_auto_20190923_1529.py b/apps/terminal/migrations/0015_auto_20190923_1529.py new file mode 100644 index 000000000..9c52d42d2 --- /dev/null +++ b/apps/terminal/migrations/0015_auto_20190923_1529.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.7 on 2019-09-23 07:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('terminal', '0014_auto_20181226_1441'), + ] + + operations = [ + migrations.AlterField( + model_name='session', + name='protocol', + field=models.CharField(choices=[('ssh', 'ssh'), ('rdp', 'rdp'), ('vnc', 'vnc'), ('telnet', 'telnet')], default='ssh', max_length=8), + ), + ] diff --git a/apps/terminal/models.py b/apps/terminal/models.py index 65de5d428..8cfd5ef87 100644 --- a/apps/terminal/models.py +++ b/apps/terminal/models.py @@ -147,7 +147,8 @@ class Session(OrgModelMixin): PROTOCOL_CHOICES = ( ('ssh', 'ssh'), ('rdp', 'rdp'), - ('vnc', 'vnc') + ('vnc', 'vnc'), + ('telnet', 'telnet'), ) id = models.UUIDField(default=uuid.uuid4, primary_key=True)