1 from django.core.management.base import BaseCommand
2 from depot.models import SiteBookPublish
5 class Command(BaseCommand):
6 def handle(self, **options):
7 for p in SiteBookPublish.objects.filter(status=0).order_by('created_at'):
8 print(p.id, p.site_book, p.created_at)