|
|
@@ -3369,6 +3369,7 @@ class Person_Area_Pub(ListView):
|
|
|
img = request.POST.get('img')
|
|
|
img_1 = request.POST.get('img_1')
|
|
|
location = request.POST.get('location')
|
|
|
+ location_2 = request.POST.get('location_2')
|
|
|
addr = request.POST.get('addr')
|
|
|
guide_img = request.POST.get('guide_img')
|
|
|
if GardenArea.objects.filter(user=user).exists():
|
|
|
@@ -3381,6 +3382,7 @@ class Person_Area_Pub(ListView):
|
|
|
gar_obj.desc = desc
|
|
|
gar_obj.img = img
|
|
|
gar_obj.location = location
|
|
|
+ gar_obj.location_2 = location_2
|
|
|
gar_obj.addr = addr
|
|
|
gar_obj.guide_img = guide_img
|
|
|
gar_obj.img_1 = img_1
|
|
|
@@ -3392,7 +3394,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,guide_img=guide_img,img_1=img_1,
|
|
|
+ area=area,desc=desc,img=img,guide_img=guide_img,img_1=img_1,location_2=location_2,
|
|
|
location=location,addr=addr)
|
|
|
data = "1"
|
|
|
except Exception as e:
|