yf_ymm 5 лет назад
Родитель
Сommit
ce9aea55da
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/Equipment/views.py

+ 1 - 1
apps/Equipment/views.py

@@ -3437,7 +3437,7 @@ class Pic_locat(ListView):
         locat_info = request.POST.get('locat_info')
         locat_info = request.POST.get('locat_info')
         pic_center = request.POST.get('pic_center')
         pic_center = request.POST.get('pic_center')
         try:
         try:
-            Pic_Info.object.create(pic_user=user,locat1=locat1,locat2=locat2,pic_center=pic_center,addr=addr,locat_info=locat_info)
+            Pic_Info.objects.create(pic_user=user,locat1=locat1,locat2=locat2,pic_center=pic_center,addr=addr,locat_info=locat_info)
             return HttpResponse("1")
             return HttpResponse("1")
         except Exception as e:
         except Exception as e:
             print("--->>",e)
             print("--->>",e)