perf: 优化一下 win2016 不再内置

pull/7195/head^2
ibuler 2021-11-15 14:51:49 +08:00 committed by Jiangjie.Bai
parent 454d3cba96
commit a315e8888b
1 changed files with 5 additions and 0 deletions

View File

@ -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):