Merge pull request #10693 from O-Jiangweidong/pr@dev@perf_ftp_log_field_same_as_session

perf: 字段含义和Session model保持一致
pull/10698/head
老广 2023-06-13 13:59:59 +08:00 committed by GitHub
commit c271d3276a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 10 deletions

View File

@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='ftplog',
name='has_file',
field=models.BooleanField(default=False, verbose_name='File Record'),
field=models.BooleanField(default=False, verbose_name='File'),
),
migrations.AddField(
model_name='ftplog',

View File

@ -58,7 +58,7 @@ class FTPLog(OrgModelMixin):
filename = models.CharField(max_length=1024, verbose_name=_("Filename"))
is_success = models.BooleanField(default=True, verbose_name=_("Success"))
date_start = models.DateTimeField(auto_now_add=True, verbose_name=_("Date start"))
has_file = models.BooleanField(default=False, verbose_name=_("File Record"))
has_file = models.BooleanField(default=False, verbose_name=_("File"))
session = models.CharField(max_length=36, verbose_name=_("Session"), default=uuid.uuid4)
class Meta:

View File

@ -1964,10 +1964,6 @@ msgstr "操作"
msgid "Filename"
msgstr "ファイル名"
#: audits/models.py:61
msgid "File Record"
msgstr ""
#: audits/models.py:62 terminal/backends/command/models.py:24
#: terminal/models/session/replay.py:9 terminal/models/session/sharing.py:18
#: terminal/models/session/sharing.py:81

View File

@ -1953,10 +1953,6 @@ msgstr "操作"
msgid "Filename"
msgstr "文件名"
#: audits/models.py:61
msgid "File Record"
msgstr ""
#: audits/models.py:62 terminal/backends/command/models.py:24
#: terminal/models/session/replay.py:9 terminal/models/session/sharing.py:18
#: terminal/models/session/sharing.py:81