Updates active readthrough templatetag

This commit is contained in:
Mouse Reeve 2021-09-22 11:59:51 -07:00
parent a05ef1a222
commit 4a3bf1d92d

View file

@ -85,7 +85,7 @@ def active_shelf(context, book):
def latest_read_through(book, user):
"""the most recent read activity"""
return (
models.ReadThrough.objects.filter(user=user, book=book)
models.ReadThrough.objects.filter(user=user, book=book, is_active=True)
.order_by("-start_date")
.first()
)