Add basic view logic for testing
This commit is contained in:
@@ -562,6 +562,9 @@ def book_page(request, book_id):
|
||||
book=book,
|
||||
).order_by('start_date')
|
||||
|
||||
for readthrough in readthroughs:
|
||||
readthrough.progress_updates = readthrough.progressupdate_set.all().order_by('date')
|
||||
|
||||
rating = reviews.aggregate(Avg('rating'))
|
||||
tags = models.Tag.objects.filter(
|
||||
book=book
|
||||
|
||||
Reference in New Issue
Block a user