Fixed an issue with the 0002_setup migration that caused the upgrade from version 14 to fail
This commit is contained in:
parent
2ff58fb955
commit
266cb6ca10
1 changed files with 4 additions and 4 deletions
|
@ -5,16 +5,16 @@ from django.db import migrations
|
||||||
|
|
||||||
def create_globals(apps, schema_editor):
|
def create_globals(apps, schema_editor):
|
||||||
Global = apps.get_model("app", "Global")
|
Global = apps.get_model("app", "Global")
|
||||||
Global.objects.create(
|
Global(
|
||||||
name="global_message",
|
name="global_message",
|
||||||
comment="Here you can set a global message that will be shown to every user",
|
comment="Here you can set a global message that will be shown to every user",
|
||||||
value_float=0.0,
|
value_float=0.0,
|
||||||
value_string="")
|
value_string="").save()
|
||||||
Global.objects.create(
|
Global(
|
||||||
name="admin_info",
|
name="admin_info",
|
||||||
comment="Here you can set am infotext that will be displayed on the admin panel",
|
comment="Here you can set am infotext that will be displayed on the admin panel",
|
||||||
value_float=0.0,
|
value_float=0.0,
|
||||||
value_string="")
|
value_string="").save()
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue