fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Login, registration etc.
[wolnelektury.git]
/
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
91836fb
..
4420a81
100644
(file)
--- 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 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):
class Command(BaseCommand):
help = 'Schedule regenerating stale ebook files.'
def handle(self, **options):
- EbookField.schedule_all_stale()
+ EbookField.schedule_all_stale(
Book
)