mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 16:35:10 +00:00
fix: 修复migrations文件错误 (#11116)
Co-authored-by: fangfang.dong <fangfang.dong@fit2cloud.com>
This commit is contained in:
@@ -9,7 +9,7 @@ def migrate_platforms_sftp_protocol(apps, schema_editor):
|
|||||||
ssh_protocols = platform_protocol_cls.objects \
|
ssh_protocols = platform_protocol_cls.objects \
|
||||||
.filter(name='ssh', setting__sftp_enabled=True) \
|
.filter(name='ssh', setting__sftp_enabled=True) \
|
||||||
.exclude(name__in=('Gateway', 'RemoteAppHost')) \
|
.exclude(name__in=('Gateway', 'RemoteAppHost')) \
|
||||||
.filter(type='linux')
|
.filter(platform__type='linux')
|
||||||
platforms_has_sftp = platform_cls.objects.filter(protocols__name='sftp')
|
platforms_has_sftp = platform_cls.objects.filter(protocols__name='sftp')
|
||||||
|
|
||||||
new_protocols = []
|
new_protocols = []
|
||||||
|
Reference in New Issue
Block a user