Skip to content

Commit

Permalink
views.pyの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KobashiYu committed Jun 23, 2024
1 parent dfeda2e commit ceb1f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweets/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TweetDetailView(LoginRequiredMixin, DetailView):
class TweetDeleteView(LoginRequiredMixin, DeleteView):
model = Tweet
template_name = "tweets/delete.html"
success_url = reverse_lazy("tweet:home")
success_url = reverse_lazy("tweets:home")

def test_func(self):
tweet = self.get_object()
Expand Down

0 comments on commit ceb1f2b

Please sign in to comment.