11 lines
317 B
Python
11 lines
317 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):
|
||
|
bookloader.add_openlibrary(work)
|