26 lines
589 B
Python
26 lines
589 B
Python
from django.db import migrations
|
|
|
|
|
|
def seed_recognition_applet(apps, schema_editor):
|
|
Applet = apps.get_model("applets", "Applet")
|
|
Applet.objects.get_or_create(
|
|
slug="billboard-recognition",
|
|
defaults={
|
|
"name": "Recognition",
|
|
"grid_cols": 4,
|
|
"grid_rows": 4,
|
|
"context": "billboard",
|
|
},
|
|
)
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("applets", "0009_my_sky_applet"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(seed_recognition_applet, migrations.RunPython.noop),
|
|
]
|