fix
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 6 Oct 2023 13:16:20 +0000 (15:16 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 6 Oct 2023 13:16:20 +0000 (15:16 +0200)
src/depot/models.py

index 0f26a19..41a6bdf 100644 (file)
@@ -169,7 +169,7 @@ class SiteBookPublish(models.Model):
         try:
             changes = [
                 p.change for p in
         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)
             ]
 
             self.site_book.site.publish(self, changes=changes)