From 1a54ed875baa5043f288bbe40d09cab69171a972 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 27 Jan 2021 09:30:03 -0800 Subject: [PATCH] easier way to get user statuses queryset --- bookwyrm/views/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/user.py b/bookwyrm/views/user.py index 668ef205..4afda01b 100644 --- a/bookwyrm/views/user.py +++ b/bookwyrm/views/user.py @@ -73,7 +73,7 @@ class User(View): activities = get_activity_feed( request.user, ['public', 'unlisted', 'followers'], - queryset=models.Status.objects.filter(user=user) + queryset=user.status_set ) paginated = Paginator(activities, PAGE_LENGTH) goal = models.AnnualGoal.objects.filter(