update lensman_update

FFIB 11 ヶ月 前
コミット
a908582469
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4 0
      api/lensman_admin_views.py

+ 4 - 0
api/lensman_admin_views.py

@@ -63,6 +63,8 @@ def lensman_update(request, administrator):
63 63
     lensman_id = request.POST.get('lensman_id', '')
64 64
     start_date = tc.to_date(request.POST.get('start_date', ''))
65 65
     end_date = tc.to_date(request.POST.get('end_date', ''))
66
+    integral_start_date = tc.to_date(request.POST.get('integral_start_date', ''))
67
+    integral_end_date = tc.to_date(request.POST.get('integral_end_date', ''))
66 68
     name = request.POST.get('name', '')
67 69
     phone = request.POST.get('phone', '')
68 70
     remark = request.POST.get('remark', '')
@@ -74,6 +76,8 @@ def lensman_update(request, administrator):
74 76
     
75 77
     lensman.start_date = start_date
76 78
     lensman.end_date = end_date
79
+    lensman.integral_start_date = integral_start_date
80
+    lensman.integral_end_date = integral_end_date
77 81
     lensman.name = name
78 82
     lensman.phone = phone
79 83
     lensman.remark = remark