X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/db255ed9d242c56b010061fbdef8de9b696869d4..817ce226770c3b003d85b7e77e96360c433c80ed:/src/depot/management/commands/depot.py?ds=sidebyside diff --git a/src/depot/management/commands/depot.py b/src/depot/management/commands/depot.py index 4b8b99af..6e64e246 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 LegimiBookPublish +from depot.models import ShopBookPublish class Command(BaseCommand): def handle(self, **options): - for p in LegimiBookPublish.objects.filter(status=0).order_by('created_at'): - print(p, p.book.slug, p.created_at) + for p in ShopBookPublish.objects.filter(status=0).order_by('created_at'): + print(p.id, p.shop, p.book.slug, p.created_at) p.publish()