More robust user page test and bug fix

This commit is contained in:
Mouse Reeve
2021-04-20 12:31:45 -07:00
parent 7ffc300bb1
commit b22d1863c9
3 changed files with 11 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class User(View):
{
"name": user_shelf.name,
"local_path": user_shelf.local_path,
"books": user_shelf.books[:3],
"books": user_shelf.books.all()[:3],
"size": user_shelf.books.count(),
}
)