From: Radek Czajka Date: Wed, 31 Aug 2011 13:50:02 +0000 (+0200) Subject: mobileinit parent fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/0c10af94c3d8f16624d5a8ac775502f92c085cde?ds=inline;hp=8f98ff35ae8cd6ebe07d73112f8c476011ac78d6 mobileinit parent fix --- diff --git a/apps/api/management/commands/mobileinit.py b/apps/api/management/commands/mobileinit.py index cfb9fb433..ca5431ebd 100755 --- a/apps/api/management/commands/mobileinit.py +++ b/apps/api/management/commands/mobileinit.py @@ -143,7 +143,7 @@ def add_book(db, book): html_file_size = book.html_file.size else: html_file = html_file_size = None - parent = book.parent + parent = book.parent_id parent_number = book.parent_number sort_key = book.sort_key size_str = pretty_size(html_file_size)