fix sort_key_author assign on publish
authorJan Szejko <janek37@gmail.com>
Tue, 18 Oct 2016 09:45:22 +0000 (11:45 +0200)
committerJan Szejko <janek37@gmail.com>
Tue, 18 Oct 2016 09:45:22 +0000 (11:45 +0200)
src/catalogue/models/book.py

index 5ac999e..f9f6ac3 100644 (file)
@@ -386,6 +386,7 @@ class Book(models.Model):
         for child in notify_cover_changed:
             child.parent_cover_changed()
 
+        book.save()  # update sort_key_author
         cls.published.send(sender=cls, instance=book)
         return book