don't need the showprogress get param any longer
This commit is contained in:
parent
129ca0352f
commit
20758b662d
@ -74,7 +74,8 @@ class Book(View):
|
|||||||
|
|
||||||
for readthrough in readthroughs:
|
for readthrough in readthroughs:
|
||||||
readthrough.progress_updates = \
|
readthrough.progress_updates = \
|
||||||
readthrough.progressupdate_set.all().order_by('-updated_date')
|
readthrough.progressupdate_set.all() \
|
||||||
|
.order_by('-updated_date')
|
||||||
|
|
||||||
user_shelves = models.ShelfBook.objects.filter(
|
user_shelves = models.ShelfBook.objects.filter(
|
||||||
added_by=request.user, book=book
|
added_by=request.user, book=book
|
||||||
@ -98,7 +99,6 @@ class Book(View):
|
|||||||
'user_shelves': user_shelves,
|
'user_shelves': user_shelves,
|
||||||
'other_edition_shelves': other_edition_shelves,
|
'other_edition_shelves': other_edition_shelves,
|
||||||
'readthroughs': readthroughs,
|
'readthroughs': readthroughs,
|
||||||
'show_progress': ('showprogress' in request.GET),
|
|
||||||
'path': '/book/%s' % book_id,
|
'path': '/book/%s' % book_id,
|
||||||
}
|
}
|
||||||
return TemplateResponse(request, 'book.html', data)
|
return TemplateResponse(request, 'book.html', data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user