Fixes warning in author view tests

This commit is contained in:
Mouse Reeve 2022-02-04 19:41:21 -08:00
parent a9a6fd1242
commit 49ceb2a978

View file

@ -28,7 +28,7 @@ class Author(View):
books = models.Work.objects.filter(
Q(authors=author) | Q(editions__authors=author)
).distinct()
).order_by("-published_date").distinct()
paginated = Paginator(books, PAGE_LENGTH)
page = paginated.get_page(request.GET.get("page"))