回答編集履歴
1
get_object_or_404の第2引数修正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
User.objects.get(pk = user_id)
|
18
18
|
|
19
|
-
data = get_object_or_404(Post_Detail, user_id)
|
19
|
+
data = get_object_or_404(Post_Detail, pk=user_id)
|
20
20
|
|
21
21
|
if request.method == 'POST':
|
22
22
|
|