mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-15 06:49:17 +00:00
perf: 优化一下 win2016 不再内置
This commit is contained in:
@@ -16,6 +16,11 @@ def create_internal_platform(apps, schema_editor):
|
||||
name=name, defaults=defaults
|
||||
)
|
||||
|
||||
win2016 = model.objects.filter(name='Windows2016').first()
|
||||
if win2016:
|
||||
win2016.internal = False
|
||||
win2016.save(update_fields=['internal'])
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
|
Reference in New Issue
Block a user