X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e1688333f557a60400fed09b4b087f4c8dddb432..4157358510703a54cde8f3b0f9814f2cd1c9f40a:/src/catalogue/management/commands/schedule_stale_ebooks.py diff --git a/src/catalogue/management/commands/schedule_stale_ebooks.py b/src/catalogue/management/commands/schedule_stale_ebooks.py index 91836fbf3..4420a815e 100644 --- a/src/catalogue/management/commands/schedule_stale_ebooks.py +++ b/src/catalogue/management/commands/schedule_stale_ebooks.py @@ -5,10 +5,11 @@ from django.conf import settings from django.core.management.base import BaseCommand from catalogue.fields import EbookField +from catalogue.models import Book class Command(BaseCommand): help = 'Schedule regenerating stale ebook files.' def handle(self, **options): - EbookField.schedule_all_stale() + EbookField.schedule_all_stale(Book)