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