|
|
@@ -3441,6 +3441,8 @@ class Pic_locat(ListView):
|
|
|
addr = request.POST.get('addr')
|
|
|
locat_info = request.POST.get('locat_info')
|
|
|
pic_center = request.POST.get('pic_center')
|
|
|
+ if Pic_Info.objects.filter(pic_user=user).exists():
|
|
|
+ return HttpResponse("0")
|
|
|
try:
|
|
|
Pic_Info.objects.create(pic_user=user,locat1=locat1,locat2=locat2,pic_center=pic_center,addr=addr,locat_info=locat_info)
|
|
|
return HttpResponse("1")
|