Added failed mix delete management command

This commit is contained in:
Fergal Moran
2013-04-21 16:59:07 +01:00
parent bb6f66163a
commit df516b0ffb

View File

@@ -0,0 +1,10 @@
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=True)
for mix in candidates:
print "Deleting: %s" % mix.title
#candidates.delete()