mirror of https://github.com/jumpserver/jumpserver
perf: 优化一下 win2016 不再内置
parent
454d3cba96
commit
a315e8888b
|
@ -16,6 +16,11 @@ def create_internal_platform(apps, schema_editor):
|
||||||
name=name, defaults=defaults
|
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):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue