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:
parent
5d2fbb8500
commit
0f98610629
13 changed files with 24 additions and 22 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue