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( activities = get_activity_feed(
request.user, request.user,
['public', 'unlisted', 'followers'], ['public', 'unlisted', 'followers'],
queryset=models.Status.objects.filter(user=user) queryset=user.status_set
) )
paginated = Paginator(activities, PAGE_LENGTH) paginated = Paginator(activities, PAGE_LENGTH)
goal = models.AnnualGoal.objects.filter( goal = models.AnnualGoal.objects.filter(