add option to generate covers with non-standard aspect ratio
[wolnelektury.git] / src / catalogue / management / commands / load_abstracts.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django.core.management.base import BaseCommand
6
7 from catalogue.models import Book
8
9
10 class Command(BaseCommand):
11     def handle(self, *args, **options):
12         for b in Book.objects.order_by('slug'):
13             print b.slug
14             b.load_abstract()
15             b.save()