X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..21ae6d580b73b6a180a25b8514e5446d61bb888e:/src/documents/management/commands/add_parent.py?ds=sidebyside diff --git a/src/documents/management/commands/add_parent.py b/src/documents/management/commands/add_parent.py index 59767bf6..4bd242db 100644 --- a/src/documents/management/commands/add_parent.py +++ b/src/documents/management/commands/add_parent.py @@ -71,7 +71,7 @@ class Command(BaseCommand): def handle(self, slug, **options): children_slugs = [line.strip() for line in sys.stdin] - children = Book.objects.filter(dc_slug__in=children_slugs) + children = Book.objects.filter(catalogue_book_id__in=children_slugs) desc_elements = [dc_desc_element(child) for child in children] title = u'Utwory wybrane' own_attributes = {