fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove the banner
[wolnelektury.git]
/
src
/
catalogue
/
api
/
helpers.py
diff --git
a/src/catalogue/api/helpers.py
b/src/catalogue/api/helpers.py
index
6813e03
..
9fe7bdb
100644
(file)
--- a/
src/catalogue/api/helpers.py
+++ b/
src/catalogue/api/helpers.py
@@
-1,5
+1,5
@@
-# This file is part of Wolne
l
ektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja
Nowoczesna Polska
. See NOTICE for more information.
+# This file is part of Wolne
L
ektury, 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
#
from django.db.models import Q
from catalogue.models import Book
@@
-20,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')
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')