- last_published = Book.objects.exclude(cover_thumb='').filter(parent=None).order_by('-created_at')[:20]
- most_popular = Book.objects.exclude(cover_thumb='')\
- .order_by('-popularity__count', 'sort_key_author', 'sort_key')[:20]
- return object_list(request, books, related_tags=get_top_level_related_tags([]), extra={
- 'last_published': last_published,
- 'most_popular': most_popular,
- })
+ # last_published = Book.objects.exclude(cover_thumb='').filter(parent=None).order_by('-created_at')[:20]
+ # most_popular = Book.objects.exclude(cover_thumb='')\
+ # .order_by('-popularity__count', 'sort_key_author', 'sort_key')[:20]
+ return object_list(request, books, related_tags=get_top_level_related_tags([]))
+ # extra={
+ # 'last_published': last_published,
+ # 'most_popular': most_popular,
+ # })