mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-25 09:30:33 +00:00
Merge pull request #1320 from bookwyrm-social/books-warning
Resolves warning in books view
This commit is contained in:
commit
accfbbfd90
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Book(View):
|
||||||
queryset = queryset.filter(user=request.user, deleted=False)
|
queryset = queryset.filter(user=request.user, deleted=False)
|
||||||
else:
|
else:
|
||||||
queryset = reviews.exclude(Q(content__isnull=True) | Q(content=""))
|
queryset = reviews.exclude(Q(content__isnull=True) | Q(content=""))
|
||||||
queryset = queryset.select_related("user")
|
queryset = queryset.select_related("user").order_by("-published_date")
|
||||||
paginated = Paginator(queryset, PAGE_LENGTH)
|
paginated = Paginator(queryset, PAGE_LENGTH)
|
||||||
|
|
||||||
lists = privacy_filter(
|
lists = privacy_filter(
|
||||||
|
|
Loading…
Reference in a new issue