Remove superfluous calls to all()
This commit is contained in:
@ -64,7 +64,7 @@ class User(View):
|
||||
{
|
||||
"name": user_shelf.name,
|
||||
"local_path": user_shelf.local_path,
|
||||
"books": user_shelf.books.all()[:3],
|
||||
"books": user_shelf.books[:3],
|
||||
"size": user_shelf.books.count(),
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user