From 368d5388fe92a5986837973afda12253173b13cc Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 26 Sep 2018 10:56:28 +0200 Subject: [PATCH] fix --- src/api/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/handlers.py b/src/api/handlers.py index cee41f48a..2e847c594 100644 --- a/src/api/handlers.py +++ b/src/api/handlers.py @@ -179,7 +179,7 @@ class BookDetails(object): try: author, title, book_id = after.split(SORT_KEY_SEP) except ValueError: - return [] + return Book.objects.none() return books.filter(Q(sort_key_author__gt=author) | (Q(sort_key_author=author) & Q(sort_key__gt=title)) | (Q(sort_key_author=author) & Q(sort_key=title) & Q(id__gt=int(book_id)))) -- 2.20.1