回答編集履歴
2
誤字の修正
test
CHANGED
@@ -42,6 +42,6 @@
|
|
42
42
|
|
43
43
|
comment.save()
|
44
44
|
|
45
|
-
return redirect('
|
45
|
+
return redirect('template', pk=post_pk)
|
46
46
|
|
47
47
|
```
|
1
誤字の修正
test
CHANGED
@@ -34,14 +34,14 @@
|
|
34
34
|
|
35
35
|
comment = form.save(commit=False)
|
36
36
|
|
37
|
-
p
|
37
|
+
post_pk = self.kwargs['pk']
|
38
38
|
|
39
|
-
comment.p
|
39
|
+
comment.post= get_object_or_404(Player, pk=post_pk)
|
40
40
|
|
41
41
|
comment.user_ip_address = get_ip(self.request)
|
42
42
|
|
43
43
|
comment.save()
|
44
44
|
|
45
|
-
return redirect('soccer:p
|
45
|
+
return redirect('soccer:post_detail', pk=post_pk)
|
46
46
|
|
47
47
|
```
|