fix ./manage.py extract_derivatives

This commit is contained in:
j 2013-04-28 20:42:43 +00:00
parent 001e85eea7
commit 0cb9ebda1f

View file

@ -23,6 +23,6 @@ class Command(BaseCommand):
def handle(self, **options): def handle(self, **options):
for s in models.Stream.objects.filter(source=None): for s in models.Stream.objects.filter(source=None):
if options['forground']: if options['forground']:
extract_derivatives(s.item.id, options['rebuild']) extract_derivatives(s.file.id, options['rebuild'])
else: else:
extract_derivatives.delay(s.item.id, options['rebuild']) extract_derivatives.delay(s.file.id, options['rebuild'])