easier way to get user statuses queryset

This commit is contained in:
Mouse Reeve 2021-01-27 09:30:03 -08:00
parent 5377a8f187
commit 1a54ed875b

View file

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