12 lines
376 B
Python
12 lines
376 B
Python
from django.core.management.base import BaseCommand
|
|
|
|
from regluit.core import models
|
|
from regluit.core import bookloader
|
|
|
|
class Command(BaseCommand):
|
|
|
|
def handle(self, *args, **options):
|
|
for work in models.Work.objects.filter(openlibrary_lookup__isnull=True):
|
|
print "loading openlibrary data for %s" % work
|
|
bookloader.add_openlibrary(work)
|