new migration to add wallet applet to dash db table; new views & html to accomodate
This commit is contained in:
18
src/apps/dashboard/migrations/0007_seed_wallet_applet.py
Normal file
18
src/apps/dashboard/migrations/0007_seed_wallet_applet.py
Normal 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),
|
||||
]
|
||||
Reference in New Issue
Block a user