فهرست منبع

诱捕器折线图

yf_ymm 5 سال پیش
والد
کامیت
af8de105eb
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      apps/Equipment/views.py

+ 3 - 1
apps/Equipment/views.py

@@ -3022,6 +3022,7 @@ class Person_Area_Pub(ListView):
         img = request.POST.get('img')
         location = request.POST.get('location')
         addr = request.POST.get('addr')
+        guide_img = request.POST.get('guide_img')
         if GardenArea.objects.filter(user=user).exists():
             try:
                 gar_obj = GardenArea.objects.get(user=user)
@@ -3033,6 +3034,7 @@ class Person_Area_Pub(ListView):
                 gar_obj.img = img
                 gar_obj.location = location
                 gar_obj.addr = addr
+                gar_obj.guide_img = guide_img
                 gar_obj.save()
                 data = "1"
             except Exception as e:
@@ -3041,7 +3043,7 @@ class Person_Area_Pub(ListView):
         else:
             try:
                 GardenArea.objects.create(user=user,name=name,manage=manage,mobile=mobile,
-                    area=area,desc=desc,img=img,
+                    area=area,desc=desc,img=img,guide_img=guide_img,
                     location=location,addr=addr)
                 data = "1"
             except Exception as e: