Files
dss.api/spa/management/commands/deletefailed.py
Fergal Moran 6f9f29f5fc Initial commit
2015-04-30 23:17:58 +01:00

11 lines
330 B
Python
Executable File

from django.core.management.base import NoArgsCommand
from spa.models import Mix
class Command(NoArgsCommand):
def handle(self, *args, **options):
candidates = Mix.objects.filter(waveform_generated=False)
for mix in candidates:
print "Deleting: %s" % mix.title
mix.delete()