Remove superfluous calls to all()
This commit is contained in:
parent
d69ce8cbbd
commit
77775d9bf8
7 changed files with 7 additions and 8 deletions
|
@ -75,7 +75,7 @@ class UserLists(View):
|
|||
except ValueError:
|
||||
page = 1
|
||||
user = get_user_from_username(request.user, username)
|
||||
lists = models.List.objects.filter(user=user).all()
|
||||
lists = models.List.objects.filter(user=user)
|
||||
lists = privacy_filter(request.user, lists)
|
||||
paginated = Paginator(lists, 12)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue