From 8389c8505415e97a844d9ea5e19abf64ed8196c6 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 23 Apr 2018 11:40:30 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=9B=B4=E6=94=B9sesion=E8=A1=A8?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/terminal/models.py b/apps/terminal/models.py index 21fb49300..3ae7066bb 100644 --- a/apps/terminal/models.py +++ b/apps/terminal/models.py @@ -132,9 +132,9 @@ class Session(models.Model): has_replay = models.BooleanField(default=False, verbose_name=_("Replay")) has_command = models.BooleanField(default=False, verbose_name=_("Command")) terminal = models.ForeignKey(Terminal, null=True, on_delete=models.SET_NULL) - protocol = models.CharField(choices=PROTOCOL_CHOICES, default='ssh') + protocol = models.CharField(choices=PROTOCOL_CHOICES, default='ssh', max_length=8) date_last_active = models.DateTimeField(verbose_name=_("Date last active"), default=timezone.now) - date_start = models.DateTimeField(verbose_name=_("Date start"), db_index=True) + date_start = models.DateTimeField(verbose_name=_("Date start"), db_index=True, default=timezone.now) date_end = models.DateTimeField(verbose_name=_("Date end"), null=True) class Meta: