回答編集履歴
1
打ち消し線が反映されないので
test
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
def index(request):
|
12
12
|
|
13
|
-
|
13
|
+
×threds = Thred.objects.all()
|
14
14
|
|
15
|
-
|
15
|
+
×comment_cnt = Comment.objects.filter( ).count()
|
16
16
|
|
17
|
-
threads = Threads.objects.annotate(comment_cnt=Count('comment'))
|
17
|
+
○threads = Threads.objects.annotate(comment_cnt=Count('comment'))
|
18
18
|
|
19
19
|
|
20
20
|
|
@@ -32,9 +32,9 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
35
|
+
×context = {'threds': threds, 'form': form, 'comment_cnt': comment_cnt}
|
36
36
|
|
37
|
-
context = {'threds': threds, 'form': form}
|
37
|
+
○context = {'threds': threds, 'form': form}
|
38
38
|
|
39
39
|
|
40
40
|
|