From: Jan Szejko Date: Mon, 4 Jul 2016 10:43:50 +0000 (+0200) Subject: turns out properties are not callable X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/1b6e22f8afa7a50c8f8e047ef638293b496251cb?ds=sidebyside turns out properties are not callable --- diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index 6f47642c..4c35e689 100755 --- a/apps/catalogue/models/book.py +++ b/apps/catalogue/models/book.py @@ -365,10 +365,10 @@ class Book(models.Model): def refresh(self): """This should be done offline.""" - self.short_html() - self.single() - self.new_publishable() - self.published() + self.short_html + self.single + self.new_publishable + self.published # Materializing & publishing # ========================== diff --git a/apps/catalogue/models/chunk.py b/apps/catalogue/models/chunk.py index b8c5674a..df6370d3 100755 --- a/apps/catalogue/models/chunk.py +++ b/apps/catalogue/models/chunk.py @@ -122,6 +122,6 @@ class Chunk(dvcs_models.Document): def refresh(self): """This should be done offline.""" - self.changed() - self.hidden() - self.short_html() + self.changed + self.hidden + self.short_html