From a315e8888b6478cfea0c8fb0639c7dce073a6985 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 15 Nov 2021 14:51:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=B8=80=E4=B8=8B=20?= =?UTF-8?q?win2016=20=E4=B8=8D=E5=86=8D=E5=86=85=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/migrations/0079_auto_20211102_1922.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/assets/migrations/0079_auto_20211102_1922.py b/apps/assets/migrations/0079_auto_20211102_1922.py index f0a05dc06..592df0259 100644 --- a/apps/assets/migrations/0079_auto_20211102_1922.py +++ b/apps/assets/migrations/0079_auto_20211102_1922.py @@ -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):