mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Fixes warning in author view tests
This commit is contained in:
parent
a9a6fd1242
commit
49ceb2a978
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Author(View):
|
||||||
|
|
||||||
books = models.Work.objects.filter(
|
books = models.Work.objects.filter(
|
||||||
Q(authors=author) | Q(editions__authors=author)
|
Q(authors=author) | Q(editions__authors=author)
|
||||||
).distinct()
|
).order_by("-published_date").distinct()
|
||||||
|
|
||||||
paginated = Paginator(books, PAGE_LENGTH)
|
paginated = Paginator(books, PAGE_LENGTH)
|
||||||
page = paginated.get_page(request.GET.get("page"))
|
page = paginated.get_page(request.GET.get("page"))
|
||||||
|
|
Loading…
Reference in a new issue