25 lines
560 B
Python
25 lines
560 B
Python
|
|
from django.db import migrations
|
||
|
|
|
||
|
|
|
||
|
|
def seed_my_sky_applet(apps, schema_editor):
|
||
|
|
Applet = apps.get_model('applets', 'Applet')
|
||
|
|
Applet.objects.get_or_create(
|
||
|
|
slug='my-sky',
|
||
|
|
defaults={
|
||
|
|
'name': 'My Sky',
|
||
|
|
'grid_cols': 6,
|
||
|
|
'grid_rows': 6,
|
||
|
|
'context': 'dashboard',
|
||
|
|
},
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
dependencies = [
|
||
|
|
('applets', '0008_game_kit_applets'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.RunPython(seed_my_sky_applet, migrations.RunPython.noop)
|
||
|
|
]
|