Files
billing/create_accounts.py
2026-01-07 09:17:45 +07:00

12 lines
303 B
Python

from billing_app.models import Account
from django.db import transaction
print("Creating sample accounts...")
with transaction.atomic():
for i in range(5):
account = Account.objects.create()
print(f"Created account: {account.uuid}")
print("Sample accounts created successfully.")