Use False instead of None for test values
This commit is contained in:
parent
1e4aee8276
commit
02dd1e9443
2 changed files with 5 additions and 4 deletions
|
@ -376,7 +376,8 @@ class Review(BookStatus):
|
|||
|
||||
def save(self, *args, **kwargs):
|
||||
"""clear rating caches"""
|
||||
cache.delete(f"book-rating-{self.book.parent_work.id}-*")
|
||||
if self.book.parent_work:
|
||||
cache.delete(f"book-rating-{self.book.parent_work.id}-*")
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue