X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/69b332800a472211b5da70426171fa429702a273..0b1bf765d6185ef20235e702b2969d951bca4de5:/src/depot/management/commands/depot.py diff --git a/src/depot/management/commands/depot.py b/src/depot/management/commands/depot.py index 6e64e246..7087816b 100644 --- a/src/depot/management/commands/depot.py +++ b/src/depot/management/commands/depot.py @@ -1,10 +1,10 @@ from django.core.management.base import BaseCommand -from depot.models import ShopBookPublish +from depot.models import SiteBookPublish class Command(BaseCommand): def handle(self, **options): - for p in ShopBookPublish.objects.filter(status=0).order_by('created_at'): - print(p.id, p.shop, p.book.slug, p.created_at) + for p in SiteBookPublish.objects.filter(status=0).order_by('created_at'): + print(p.id, p.site_book, p.created_at) p.publish()