Skip to content

Commit

Permalink
views.pyの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KobashiYu committed Jun 27, 2024
1 parent 4fc64af commit 8c2c7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class UserProfileView(LoginRequiredMixin, TemplateView):

def get_context_data(self, username):
context = super().get_context_data()
user = get_object_or_404(User, username)
user = get_object_or_404(User, username=username)
context["user"] = username
context["tweets"] = Tweet.objects.select_related("user").filter(user=user).order_by("-created_at")
return context

0 comments on commit 8c2c7de

Please sign in to comment.