mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-25 17:40:35 +00:00
easier way to get user statuses queryset
This commit is contained in:
parent
5377a8f187
commit
1a54ed875b
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue