X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/540e76dd8e04d7bab431da696565e826788bd218..2c101e78aee8cd3ccf3f24a0ecaa22fa77593c5c:/src/catalogue/api/helpers.py?ds=inline diff --git a/src/catalogue/api/helpers.py b/src/catalogue/api/helpers.py index d872dde17..9fe7bdbd7 100644 --- a/src/catalogue/api/helpers.py +++ b/src/catalogue/api/helpers.py @@ -1,3 +1,6 @@ +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# from django.db.models import Q from catalogue.models import Book @@ -17,6 +20,4 @@ def books_after(books, after, new_api): def order_books(books, new_api): if new_api: return books.order_by('sort_key_author', 'sort_key', 'id') - else: - return books.order_by('slug') - + return books.order_by('slug')