12 lines
303 B
Python
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.")
|