Don't show deleted ratings in stars
This commit is contained in:
parent
94d6e07478
commit
ca8067769c
|
@ -25,6 +25,7 @@ def get_user_rating(book, user):
|
||||||
user=user,
|
user=user,
|
||||||
book=book,
|
book=book,
|
||||||
rating__isnull=False,
|
rating__isnull=False,
|
||||||
|
deleted=False,
|
||||||
)
|
)
|
||||||
.order_by("-published_date")
|
.order_by("-published_date")
|
||||||
.first()
|
.first()
|
||||||
|
|
|
@ -62,6 +62,7 @@ class Shelf(View):
|
||||||
user=user,
|
user=user,
|
||||||
rating__isnull=False,
|
rating__isnull=False,
|
||||||
book__id=OuterRef("id"),
|
book__id=OuterRef("id"),
|
||||||
|
deleted=False,
|
||||||
).order_by("-published_date")
|
).order_by("-published_date")
|
||||||
|
|
||||||
if not is_self:
|
if not is_self:
|
||||||
|
|
Loading…
Reference in New Issue