回答編集履歴

1

打ち消し線が反映されないので

2020/09/22 03:02

投稿

swing_swimming
swing_swimming

スコア54

test CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
  def index(request):
12
12
 
13
- ~~threds = Thred.objects.all()~~
13
+ ×threds = Thred.objects.all()
14
14
 
15
- ~~comment_cnt = Comment.objects.filter( ).count()~~
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
- ~~context = {'threds': threds, 'form': form, 'comment_cnt': comment_cnt}~~
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