From 266cb6ca106acf9e24926b02b42cf0aa0fbaf0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=BCller=20=28ChaoticByte=29?= Date: Sun, 26 Mar 2023 12:26:43 +0200 Subject: [PATCH] Fixed an issue with the 0002_setup migration that caused the upgrade from version 14 to fail --- app/migrations/0002_setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/migrations/0002_setup.py b/app/migrations/0002_setup.py index 43ec889..fdb8962 100644 --- a/app/migrations/0002_setup.py +++ b/app/migrations/0002_setup.py @@ -5,16 +5,16 @@ from django.db import migrations def create_globals(apps, schema_editor): Global = apps.get_model("app", "Global") - Global.objects.create( + Global( name="global_message", comment="Here you can set a global message that will be shown to every user", value_float=0.0, - value_string="") - Global.objects.create( + value_string="").save() + Global( name="admin_info", comment="Here you can set am infotext that will be displayed on the admin panel", value_float=0.0, - value_string="") + value_string="").save() class Migration(migrations.Migration):