mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-02 23:13:58 +00:00
Added failed mix delete management command
This commit is contained in:
10
spa/management/commands/deletefailed.py
Normal file
10
spa/management/commands/deletefailed.py
Normal 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()
|
||||
Reference in New Issue
Block a user