Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
conorgolden1 committed May 17, 2024
1 parent e2392fa commit d61c2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/coreapp/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class CurrentUserCommentList(generics.ListAPIView): # type: ignore
pagination_class = CommentPagination
serializer_class = CommentSerializer

def get_queryset(self) -> QuerySet[Scratch]:
def get_queryset(self) -> QuerySet[Comment]:
return Comment.objects.filter(owner=self.request.profile)


Expand All @@ -93,7 +93,7 @@ class UserCommentList(generics.ListAPIView): # type: ignore
pagination_class = CommentPagination
serializer_class = CommentSerializer

def get_queryset(self) -> QuerySet[Scratch]:
def get_queryset(self) -> QuerySet[Comment]:
return Comment.objects.filter(owner__user__username=self.kwargs["username"])


Expand Down

0 comments on commit d61c2b0

Please sign in to comment.