Exemplo n.º 1
0
def p_category_del(req, id, *args, **kwargs):
    res = modal_del.query_del(req, models.ProductCategory, id)
    return HttpResponse(res)
Exemplo n.º 2
0
def product_del(req, id, *args, **kwargs):
    res = modal_del.query_del(req, models.Products, id)
    return HttpResponse(res)
Exemplo n.º 3
0
def banner_del(req, id):
    res = modal_del.query_del(req, models.Banner, id)
    if res == True:
        return HttpResponse('成功')
    return HttpResponse(res)
Exemplo n.º 4
0
def nav_del(request, id):
    res = modal_del.query_del(request, models.IndexNav, id)
    return HttpResponse(res)
Exemplo n.º 5
0
def keyword_del(req, id, *args, **kwargs):
    res = modal_del.query_del(req, models.ArticlesTag, id)
    return HttpResponse(res)
Exemplo n.º 6
0
def category_del(req, id, *args, **kwargs):
    res = modal_del.query_del(req, models.ArticlesCategory, id)
    return HttpResponse(res)
Exemplo n.º 7
0
def article_del(req, articled_id, *args, **kwargs):
    res = modal_del.query_del(req, models.Articles, articled_id)
    return HttpResponse(res)