new migration to add wallet applet to dash db table; new views & html to accomodate

This commit is contained in:
Disco DeDisco
2026-03-08 15:27:24 -04:00
parent 076d75effe
commit ad0caa7c17
4 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
from django.db import migrations
def seed_wallet_applet(apps, schema_editor):
Applet = apps.get_model("dashboard", "Applet")
Applet.objects.get_or_create(
slug="wallet",
defaults={"name": "Wallet", "grid_cols": 12, "grid_rows": 3},
)
class Migration(migrations.Migration):
dependencies = [
("dashboard", "0006_rename_theme_switcher"),
]
operations = [
migrations.RunPython(seed_wallet_applet, migrations.RunPython.noop),
]