14 lines
331 B
Python
14 lines
331 B
Python
from pprint import pprint
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
import regluit
|
|
|
|
class Command(BaseCommand):
|
|
help = "clear all transactions"
|
|
|
|
def handle(self, *args, **kwargs):
|
|
transactions = regluit.payment.models.Transaction.objects.all()
|
|
for t in transactions:
|
|
t.delete()
|
|
|