recognition: seed billboard-recognition applet 4×4; vertical title link; placement in billboard grid
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
25
src/apps/applets/migrations/0010_recognition_applet.py
Normal file
25
src/apps/applets/migrations/0010_recognition_applet.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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),
|
||||
]
|
||||
Reference in New Issue
Block a user