X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0b1bf765d6185ef20235e702b2969d951bca4de5..2ad3a0ff948fcd754043b251e4767808babb25d2:/src/depot/models.py?ds=sidebyside diff --git a/src/depot/models.py b/src/depot/models.py index 15c0d3a8..41a6bdfa 100644 --- a/src/depot/models.py +++ b/src/depot/models.py @@ -169,10 +169,10 @@ 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.publish(self, changes=changes) + self.site_book.site.publish(self, changes=changes) except Exception: self.status = 110