X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2c88cd11935d3011fadcc1667ac886652ba189ca..a9b45b86d91d95987e15f5113695d7c27e6d66a2:/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)