1
0
Fork 0

Use local key instead of openlibrary key in urls

but uh maybe the local key shouldn't look so gnarly?
This commit is contained in:
Mouse Reeve 2020-03-27 15:42:44 -07:00
parent 5d2fbb8500
commit 0f98610629
13 changed files with 24 additions and 22 deletions

View file

@ -100,7 +100,9 @@ def books_page(request):
''' discover books '''
recent_books = models.Book.objects
if request.user.is_authenticated:
recent_books = recent_books.filter(~Q(shelfbook__shelf__user=request.user))
recent_books = recent_books.filter(
~Q(shelfbook__shelf__user=request.user)
)
recent_books = recent_books.order_by('-created_date')[:50]
data = {