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