From: Radek Czajka Date: Fri, 6 Oct 2023 13:16:20 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/37f3ee92951cdf0d9742b37a5a5f839675b996ff?ds=inline;hp=8ba1ce3bd12a74099c4287d2bafbabcc73c648b3 fix --- diff --git a/src/depot/models.py b/src/depot/models.py index 0f26a19f..41a6bdfa 100644 --- a/src/depot/models.py +++ b/src/depot/models.py @@ -169,7 +169,7 @@ class SiteBookPublish(models.Model): try: changes = [ p.change for p in - self.sitechunkpublish_set.order_by('change__chunk__number') + self.sitechunkpublish_set.order_by('change__tree__number') ] self.site_book.site.publish(self, changes=changes)