X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/82fa12952975d2857e2eb02d66a7f133fd4d5e2e..0fd4355e7f1db0ef0f5095e8c4dd58c6617035ce:/apps/catalogue/models.py?ds=sidebyside diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index f31dbe632..2a9387300 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -166,7 +166,7 @@ class Book(models.Model): book.tags = book_tags if hasattr(book_info, 'parts'): - for part_url, n in enumerate(book_info.parts): + for n, part_url in enumerate(book_info.parts): base, slug = part_url.rsplit('/', 1) child_book = Book.objects.get(slug=slug) child_book.parent = book