From 0c10af94c3d8f16624d5a8ac775502f92c085cde Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 31 Aug 2011 15:50:02 +0200 Subject: [PATCH] mobileinit parent fix --- apps/api/management/commands/mobileinit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1