for n, child_book in enumerate(children):
new_child = child_book.parent != book
child_book.parent = book
child_book.parent_number = n
child_book.save()
if new_child or cover_changed:
for n, child_book in enumerate(children):
new_child = child_book.parent != book
child_book.parent = book
child_book.parent_number = n
child_book.save()
if new_child or cover_changed: