Explorar o código

修复app端美丽乡村数据过滤条件

yf_yzl %!s(int64=2) %!d(string=hai) anos
pai
achega
2a3a44074a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      smartfarming/views/counts_views.py

+ 1 - 1
smartfarming/views/counts_views.py

@@ -322,7 +322,7 @@ class KeDongOverAPIView(APIView):
     def post(self, request): 
         # 我的信息
         try:
-            country_count = CountryModel.objects.all().count()
+            country_count = CountryModel.objects.filter(is_delete=1).count()
             area = MongoBase.objects.all().first().base_area
             device = MongoDevice.objects.all().count()
             return Response({