From c56dfc17c204f0b5c84523c14229a779d4c12089 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 27 Feb 2018 11:06:42 +0100 Subject: [PATCH] set popularity when creating a book --- src/catalogue/models/book.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index 8b85ec718..e5ab5e480 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -465,6 +465,7 @@ class Book(models.Model): child.parent_cover_changed() book.save() # update sort_key_author + book.update_popularity() cls.published.send(sender=cls, instance=book) return book -- 2.20.1