def p_category_del(req, id, *args, **kwargs): res = modal_del.query_del(req, models.ProductCategory, id) return HttpResponse(res)
def product_del(req, id, *args, **kwargs): res = modal_del.query_del(req, models.Products, id) return HttpResponse(res)
def banner_del(req, id): res = modal_del.query_del(req, models.Banner, id) if res == True: return HttpResponse('成功') return HttpResponse(res)
def nav_del(request, id): res = modal_del.query_del(request, models.IndexNav, id) return HttpResponse(res)
def keyword_del(req, id, *args, **kwargs): res = modal_del.query_del(req, models.ArticlesTag, id) return HttpResponse(res)
def category_del(req, id, *args, **kwargs): res = modal_del.query_del(req, models.ArticlesCategory, id) return HttpResponse(res)
def article_del(req, articled_id, *args, **kwargs): res = modal_del.query_del(req, models.Articles, articled_id) return HttpResponse(res)