fix field mapping

adam
aundus 2021-05-07 12:52:22 -04:00
parent 1150b985a3
commit beb38456bb
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def insertBookToBookshelf(bookId, bookshelfId):
def booksInBookshelf(request, bookshelfId):
bookshelfName = Bookshelf.objects.get(id=bookshelfId).bookshelf
idList = BookshelfToBook.objects.filter(fk_bookshelves=bookshelfId).values_list('fk_books', flat=True)
books = Book.objects.filter(id__in=idList).order_by('bookshelf')
books = Book.objects.filter(id__in=idList).order_by('title')
context = {
'books': books,