Fixes warning in author view tests
This commit is contained in:
parent
a9a6fd1242
commit
49ceb2a978
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue