fix: 修复migrations文件错误 (#11116)

Co-authored-by: fangfang.dong <fangfang.dong@fit2cloud.com>
pull/11119/head
fit2bot 2023-07-28 15:14:49 +08:00 committed by GitHub
parent e339a56042
commit 38cee8eaa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def migrate_platforms_sftp_protocol(apps, schema_editor):
ssh_protocols = platform_protocol_cls.objects \
.filter(name='ssh', setting__sftp_enabled=True) \
.exclude(name__in=('Gateway', 'RemoteAppHost')) \
.filter(type='linux')
.filter(platform__type='linux')
platforms_has_sftp = platform_cls.objects.filter(protocols__name='sftp')
new_protocols = []