質問編集履歴

3

elifに変更

2018/11/02 08:41

投稿

Abenosan
Abenosan

スコア25

test CHANGED
File without changes
test CHANGED
@@ -68,7 +68,7 @@
68
68
 
69
69
  # 完了したタスクを1件をDBから削除
70
70
 
71
- if 'task_delete' in request.POST:
71
+ elif 'task_delete' in request.POST:
72
72
 
73
73
  tasks = task.objects.get(id=request.POST['id'])
74
74
 
@@ -78,7 +78,7 @@
78
78
 
79
79
  # 完了したタスクのリスト全てを削除
80
80
 
81
- if 'task_all_delete' in request.POST:
81
+ elif 'task_all_delete' in request.POST:
82
82
 
83
83
  tasks = task.objects.all().filter(users=request.session['u_s_id'], status=True)
84
84
 

2

きーわおd

2018/11/02 08:41

投稿

Abenosan
Abenosan

スコア25

test CHANGED
File without changes
test CHANGED
File without changes

1

class task_end(TemplateView): """ タスク完了画面"""

2018/11/02 08:34

投稿

Abenosan
Abenosan

スコア25

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,19 @@
30
30
 
31
31
 
32
32
 
33
+
34
+
33
35
  ```
36
+
37
+
38
+
39
+ class task_end(TemplateView):
40
+
41
+ """ タスク完了画面"""
42
+
43
+ def get(self,request):
44
+
45
+
34
46
 
35
47
  ~~~省略~~~
36
48