Remove superfluous calls to all()

This commit is contained in:
Mouse Reeve
2021-04-19 14:47:59 -07:00
parent d69ce8cbbd
commit 77775d9bf8
7 changed files with 7 additions and 8 deletions

View File

@ -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)