[Bugfix] session model 添加 vnc 协议 (#2278)

* [Bugfix] session model 添加 vnc 协议

* [Update] 修改表结构
pull/2279/head
BaiJiangJie 2018-12-26 14:43:43 +08:00 committed by 老广
parent 8e51f97dc7
commit 340c615efe
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1 on 2018-12-26 06:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('terminal', '0013_auto_20181123_1113'),
]
operations = [
migrations.AlterField(
model_name='session',
name='protocol',
field=models.CharField(choices=[('ssh', 'ssh'), ('rdp', 'rdp'), ('vnc', 'vnc')], default='ssh', max_length=8),
),
]

View File

@ -132,7 +132,8 @@ class Session(OrgModelMixin):
)
PROTOCOL_CHOICES = (
('ssh', 'ssh'),
('rdp', 'rdp')
('rdp', 'rdp'),
('vnc', 'vnc')
)
id = models.UUIDField(default=uuid.uuid4, primary_key=True)