Allow author creation by api.
[wolnelektury.git] / src / catalogue / management / commands / schedule_stale_ebooks.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.conf import settings
5 from django.core.management.base import BaseCommand
6
7 from catalogue.fields import EbookField
8 from catalogue.models import Book
9
10
11 class Command(BaseCommand):
12     help = 'Schedule regenerating stale ebook files.'
13
14     def handle(self, **options):
15         EbookField.schedule_all_stale(Book)