test

123

234

345

456

欢迎来到
欢迎来到

C语言中int的上限是 231 - 1 = 2147483647

123

234

欢迎来到

点击查看代码
def del_customer(request):
    username = request.POST.get("del_user")
    user_obj = models.Customer.objects.filter(username=username)
    res = Response()
    if not user_obj:
        res.detail = "用户信息不存在"
        return JsonResponse(res.dict)
    else:
        res.status = True
        user_obj.update(active=0)
        return JsonResponse(res.dict)
![](https://img2023.cnblogs.com/blog/2959402/202309/2959402-20230903121441951-2064009554.png)
posted @ 2023-09-03 03:06  khalil12138  阅读(9)  评论(0编辑  收藏  举报